#customers-pro-root {
  min-width: 0;
}

.customers-pro-page {
  display: grid;
  gap: 14px;
}

.customers-pro-hero,
.customers-pro-toolbar,
.customers-pro-panel,
.customers-pro-drawer,
.customers-pro-editor {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #d9e0e7);
  border-radius: 8px;
}

.customers-pro-hero {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px;
}

.customers-pro-hero span,
.customers-pro-hero p,
.customers-pro-panel-head span,
.customers-pro-toolbar label span,
.customers-pro-total span,
.customers-pro-drawer-head span,
.customers-pro-summary-grid span,
.customers-pro-info-grid span,
.customers-pro-subhead span,
.customers-pro-editor label span {
  color: var(--muted, #687584);
  font-size: 12px;
  font-weight: 850;
}

.customers-pro-hero h1,
.customers-pro-panel-head h2,
.customers-pro-drawer-head h2 {
  color: var(--text, #17202a);
  letter-spacing: 0;
  margin: 2px 0 0;
}

.customers-pro-hero h1 {
  font-size: 30px;
}

.customers-pro-hero p {
  margin: 6px 0 0;
  max-width: 760px;
}

.customers-pro-total {
  background: linear-gradient(135deg, #e8f4f1 0%, #eef2f7 100%);
  border: 1px solid var(--border, #d9e0e7);
  border-radius: 8px;
  min-width: 160px;
  padding: 12px 14px;
  text-align: right;
}

.customers-pro-total strong {
  display: block;
  font-size: 28px;
}

.customers-pro-toolbar {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(300px, 1fr) 150px 150px 130px auto;
  padding: 12px;
}

.customers-pro-search input {
  font-size: 16px;
}

.customers-pro-toolbar label,
.customers-pro-editor label {
  display: grid;
  gap: 6px;
}

.customers-pro-toolbar input,
.customers-pro-toolbar select,
.customers-pro-editor input,
.customers-pro-editor select,
.customers-pro-editor textarea {
  background: #fff;
  border: 1px solid var(--border, #d9e0e7);
  border-radius: 8px;
  color: var(--text, #17202a);
  font: inherit;
  min-height: 46px;
  padding: 0 12px;
}

.customers-pro-editor textarea {
  line-height: 1.45;
  min-height: 112px;
  padding-block: 10px;
  resize: vertical;
}

.customers-pro-toolbar button,
.customers-pro-pagination button,
.customers-pro-row-actions button,
.customers-pro-drawer-head button,
.customers-pro-drawer-actions button,
.customers-pro-editor-actions button {
  border: 1px solid var(--border, #d9e0e7);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 44px;
  padding: 0 12px;
}

.customers-pro-toolbar button,
.customers-pro-drawer-actions button,
.customers-pro-editor-actions button[type="submit"] {
  background: var(--primary, #176b5b);
  border-color: var(--primary, #176b5b);
  color: #fff;
}

.customers-pro-editor-actions button:disabled {
  cursor: progress;
  opacity: .7;
}

.customers-pro-error {
  background: var(--danger-soft, #fde8e5);
  border: 1px solid #f7c8c1;
  border-radius: 8px;
  color: var(--danger, #b42318);
  font-weight: 800;
  padding: 12px 14px;
}

.customers-pro-panel {
  overflow: hidden;
}

.customers-pro-panel-head,
.customers-pro-drawer-head,
.customers-pro-subhead,
.customers-pro-pagination {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 14px;
}

.customers-pro-table-wrap {
  overflow: auto;
}

.customers-pro-table {
  border-collapse: collapse;
  min-width: 1080px;
  width: 100%;
}

.customers-pro-table th,
.customers-pro-table td {
  border-top: 1px solid var(--border, #d9e0e7);
  padding: 11px 14px;
  text-align: left;
  vertical-align: middle;
}

.customers-pro-table th {
  background: var(--surface-muted, #eef2f5);
  color: var(--muted, #687584);
  font-size: 12px;
  font-weight: 950;
  position: sticky;
  top: 0;
}

.customers-pro-table td strong,
.customers-pro-table td b {
  color: var(--text, #17202a);
}

.customers-pro-table td span {
  color: var(--muted, #687584);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
}

.customers-pro-table .is-debt,
.customers-pro-summary-grid .is-danger strong,
.customers-pro-summary-grid .is-danger b {
  color: var(--danger, #b42318);
}

.customers-pro-table .is-credit,
.customers-pro-summary-grid .is-credit strong,
.customers-pro-summary-grid .is-credit b {
  color: #0b6f88;
}

.customers-pro-summary-grid .is-clear strong,
.customers-pro-summary-grid .is-clear b {
  color: var(--success, #157f4f);
}

.customers-pro-badge {
  border-radius: 999px;
  display: inline-grid !important;
  font-size: 12px !important;
  margin-top: 0 !important;
  min-height: 28px;
  padding: 5px 10px;
  place-items: center;
}

.customers-pro-badge.is-active {
  background: var(--success-soft, #e2f5ec);
  color: var(--success, #157f4f);
}

.customers-pro-badge.is-passive {
  background: var(--surface-muted, #eef2f5);
  color: var(--muted-strong, #4f5d6b);
}

.customers-pro-row-actions {
  display: flex;
  gap: 6px;
}

.customers-pro-row-actions button:first-child,
.customers-pro-pagination .is-current {
  background: var(--primary-soft, #e1f2ed);
  border-color: var(--primary, #176b5b);
  color: var(--primary-dark, #0f5144);
}

.customers-pro-state {
  color: var(--muted, #687584);
  font-weight: 850;
  padding: 28px 14px;
  text-align: center;
}

.customers-pro-pagination > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.customers-pro-pagination button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.customers-pro-drawer {
  box-shadow: var(--shadow, 0 20px 48px #17202a14);
  display: grid;
  gap: 0;
  overflow: hidden;
}

.customers-pro-summary-grid,
.customers-pro-info-grid {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.customers-pro-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.customers-pro-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customers-pro-summary-grid article,
.customers-pro-info-grid article {
  background: var(--surface-muted, #eef2f5);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
}

.customers-pro-summary-grid article {
  border-left: 4px solid #8aa2b6;
}

.customers-pro-summary-grid article.is-danger {
  border-left-color: var(--danger, #b42318);
}

.customers-pro-summary-grid article.is-credit {
  border-left-color: #0b6f88;
}

.customers-pro-summary-grid article.is-clear {
  border-left-color: var(--success, #157f4f);
}

.customers-pro-summary-grid strong {
  font-size: 20px;
}

.customers-pro-section {
  border-top: 1px solid var(--border, #d9e0e7);
  padding-bottom: 10px;
}

.customers-pro-section p {
  color: var(--muted, #687584);
  margin: 0;
  padding: 0 14px 10px;
}

.customers-pro-mini-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 8px 14px;
}

.customers-pro-mini-row span {
  color: var(--muted-strong, #4f5d6b);
  font-size: 13px;
  font-weight: 850;
  min-width: 0;
}

.customers-pro-mini-row strong {
  text-align: right;
  white-space: nowrap;
}

.customers-pro-document {
  border-top: 1px solid var(--border, #d9e0e7);
  display: grid;
  gap: 8px;
  padding: 12px 14px;
}

.customers-pro-document header,
.customers-pro-document div {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.customers-pro-document header span,
.customers-pro-document div span {
  color: var(--muted, #687584);
  font-size: 13px;
  font-weight: 850;
}

.customers-pro-document div b {
  white-space: nowrap;
}

.customers-pro-drawer-actions {
  border-top: 1px solid var(--border, #d9e0e7);
  padding: 14px;
}

.customers-pro-modal {
  background: rgb(23 32 42 / 62%);
  display: grid;
  inset: 0;
  padding: 18px;
  place-items: center;
  position: fixed;
  z-index: 90;
}

.customers-pro-editor {
  max-height: min(780px, 92vh);
  overflow: auto;
  width: min(900px, 100%);
}

.customers-pro-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 14px 14px;
}

.customers-pro-form-grid .is-wide {
  grid-column: 1 / -1;
}

.customers-pro-editor-actions {
  border-top: 1px solid var(--border, #d9e0e7);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px;
}

@media (min-width: 1380px) {
  .customers-pro-page {
    max-width: none;
  }
}

@media (max-width: 1060px) {
  .customers-pro-toolbar {
    grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(130px, 150px));
  }

  .customers-pro-toolbar label:nth-of-type(4),
  .customers-pro-toolbar button {
    grid-column: auto;
  }

  .customers-pro-summary-grid,
  .customers-pro-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .customers-pro-hero,
  .customers-pro-panel-head,
  .customers-pro-pagination,
  .customers-pro-document header,
  .customers-pro-document div {
    align-items: stretch;
    flex-direction: column;
  }

  .customers-pro-total {
    text-align: left;
  }

  .customers-pro-toolbar,
  .customers-pro-summary-grid,
  .customers-pro-info-grid,
  .customers-pro-form-grid {
    grid-template-columns: 1fr;
  }

  .customers-pro-table {
    min-width: 0;
  }

  .customers-pro-table thead {
    display: none;
  }

  .customers-pro-table tbody,
  .customers-pro-table tr,
  .customers-pro-table td {
    display: block;
  }

  .customers-pro-table tr {
    border-top: 1px solid var(--border, #d9e0e7);
    padding: 10px;
  }

  .customers-pro-table td {
    border-top: 0;
    display: flex;
    justify-content: space-between;
    min-height: 38px;
    padding: 7px 2px;
    text-align: right;
  }

  .customers-pro-table td::before {
    color: var(--muted, #687584);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 950;
    padding-right: 12px;
    text-align: left;
  }

  .customers-pro-table td[data-label="Kod / Unvan"],
  .customers-pro-table td[data-label="Kod / Ünvan"],
  .customers-pro-table td[data-label="İletişim"],
  .customers-pro-table td[data-label="Vergi"],
  .customers-pro-table td[data-label="İşlem"] {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }

  .customers-pro-row-actions,
  .customers-pro-editor-actions {
    width: 100%;
  }

  .customers-pro-row-actions button,
  .customers-pro-editor-actions button {
    flex: 1;
  }

  .customers-pro-mini-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .customers-pro-mini-row strong {
    text-align: left;
  }
}
