/**
 * WordPress /records/ — visual parity with app hareketler page.
 * Scoped under .vala-template-records.
 *
 * @package valahub-child
 */
@import url("vala-accounts-app.css");

/* —— Hareketler: Cüzdanlar / cam hero + hızlı işlemler dili —— */
.vala-template-records .accounts-wp-head {
  margin: 0 0 clamp(12px, 1.2vw, 16px);
}

.vala-template-records .accounts-wp-head__title {
  margin: 0 0 4px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: rgba(248, 250, 252, 0.96);
  letter-spacing: -0.02em;
}

.vala-template-records .accounts-wp-head__sub {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(186, 230, 253, 0.78);
  line-height: 1.45;
}

.vala-template-records .records-unified-hero {
  margin-bottom: clamp(14px, 1.4vw, 18px);
}

.vala-template-records .records-unified-hero .wallets-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 20px);
  align-items: start;
}

.vala-template-records .records-unified-hero .wallets-hero-col {
  min-width: 0;
}

.vala-template-records .records-unified-hero .wallets-hero-col + .wallets-hero-col {
  border-left: 1px solid rgba(148, 163, 184, 0.22);
  padding-left: clamp(12px, 1.6vw, 18px);
}

.vala-template-records .records-unified-hero .wallets-hero-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(186, 230, 253, 0.72);
}

.vala-template-records .records-unified-hero .wallets-hero-value {
  margin: 0 0 12px;
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(248, 250, 252, 0.98);
}

.vala-template-records .records-unified-hero .wallets-hero-value--sub {
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 750;
  margin-bottom: 10px;
}

.vala-template-records .records-unified-hero .wallets-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.vala-template-records .records-unified-hero .wallets-hero-stat:last-of-type {
  margin-bottom: 0;
}

.vala-template-records .records-unified-hero .wallets-hero-stat-label {
  font-size: 11px;
  font-weight: 650;
  color: rgba(186, 230, 253, 0.76);
}

.vala-template-records .records-unified-hero .wallets-hero-stat-val {
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 800;
  color: rgba(240, 249, 255, 0.96);
}

.vala-template-records .records-unified-hero .wallets-hero-stat-val--income {
  color: rgba(110, 231, 183, 0.98);
}

.vala-template-records .records-unified-hero .wallets-hero-stat-val--expense {
  color: rgba(252, 165, 165, 0.98);
}

.vala-template-records .records-unified-hero .wallets-hero-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.62);
}

.vala-template-records .records-unified-hero .wallets-hero-muted {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(186, 230, 253, 0.82);
}

.vala-template-records .records-unified-hero .wallets-hero-divider {
  height: 1px;
  margin: 10px 0;
  background: rgba(148, 163, 184, 0.22);
}

.vala-template-records .records-unified-hero .wallets-hero-muted-label {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.55);
}

.vala-template-records .accounts-quick-strip__row.records-quick-strip__row {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px;
}

.vala-template-records .records-quick-strip__secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.vala-template-records .records-quick-secondary {
  font-size: 12px;
  font-weight: 650;
  color: rgba(186, 230, 253, 0.88);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.vala-template-records .records-quick-secondary:hover {
  border-color: rgba(186, 230, 253, 0.35);
  background: rgba(255, 255, 255, 0.07);
}

.vala-template-records .records-quick-secondary--btn {
  font: inherit;
  cursor: pointer;
  color: rgba(186, 230, 253, 0.88);
}

.vala-template-records .records-category-chips-wrap {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(2, 12, 28, 0.35);
}

.vala-template-records .records-category-chips-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.58);
}

.vala-template-records .records-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.vala-template-records .records-category-chip {
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.03em;
  color: rgba(248, 250, 252, 0.9);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.vala-template-records .records-category-chip:hover {
  border-color: rgba(186, 230, 253, 0.35);
}

.vala-template-records .records-category-chip.is-active {
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(56, 189, 248, 0.12);
}

.vala-template-records .records-category-chips-meta {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(186, 230, 253, 0.72);
}

@media (max-width: 900px) {
  .vala-template-records .records-unified-hero .wallets-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vala-template-records .records-unified-hero .wallets-hero-col + .wallets-hero-col {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    padding-top: 12px;
  }
}

@media (max-width: 640px) {
  .vala-template-records .accounts-quick-strip__row.records-quick-strip__row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 400px) {
  .vala-template-records .accounts-quick-strip__row.records-quick-strip__row {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Hareketler — liste üstü filtre satırı (Dashboard / Accounts ile uyumlu) */
.vala-template-records .records-page-shell {
  width: 100%;
  box-sizing: border-box;
}

.vala-template-records .records-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.vala-template-records .records-quick-heading {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #101828;
  line-height: 1.2;
}

.vala-template-records .records-detail-add-link {
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.vala-template-records .records-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-items: start;
}

/* Hızlı işlem — 70/30 bölünür satır, mobilde alt alta */
.vala-template-records .records-page-shell .records-quick-split {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

.vala-template-records .records-page-shell .records-quick-main {
  flex: 7 1 0;
  min-width: 0;
}

.vala-template-records .records-page-shell .records-detail-promo {
  flex: 3 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  border: 1px solid rgba(3, 74, 166, 0.28);
  background: linear-gradient(145deg, rgba(3, 74, 166, 0.14), rgba(3, 74, 166, 0.06));
  box-shadow: 0 10px 28px rgba(3, 37, 140, 0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.vala-template-records .records-page-shell .records-detail-promo:hover {
  transform: translateY(-1px);
  border-color: rgba(3, 74, 166, 0.42);
  box-shadow: 0 14px 36px rgba(3, 37, 140, 0.2);
}

.vala-template-records .records-page-shell .records-detail-promo:active {
  transform: translateY(0);
}

.vala-template-records .records-detail-promo__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #034aa6;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.vala-template-records .records-detail-promo__sub {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: #475467;
}

.vala-template-records .records-page-shell .records-quick-grid--compact {
  gap: 5px;
}

.vala-template-records .records-page-shell .records-quick-grid--compact .records-quick-tile {
  padding: 6px 4px;
  gap: 3px;
}

.vala-template-records .records-page-shell .records-quick-grid--compact .records-quick-icon {
  width: 28px;
  height: 28px;
  font-size: 13px;
  border-radius: 9px;
}

.vala-template-records .records-page-shell .records-quick-grid--compact .records-quick-title {
  font-size: 11px;
}

.vala-template-records .records-page-shell .records-quick-grid--compact .records-quick-sub {
  font-size: 9px;
  -webkit-line-clamp: 1;
}

@media (max-width: 720px) {
  .vala-template-records .records-page-shell .records-quick-split {
    flex-direction: column;
    align-items: stretch;
  }

  .vala-template-records .records-page-shell .records-detail-promo {
    flex: 1 1 auto;
    min-height: 100px;
  }
}

/* Liste + kategoriler — ~70/30, dar ekranda üst üste */
.vala-template-records .records-page-shell .records-main-split {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.vala-template-records .records-page-shell .records-main-col--list {
  flex: 7 1 0;
  min-width: 0;
}

.vala-template-records .records-page-shell .records-main-col--aside {
  flex: 3 1 0;
  min-width: 0;
  position: sticky;
  top: 8px;
  align-self: flex-start;
  max-height: calc(100vh - 24px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.vala-template-records .records-categories-panel.records-categories-card {
  padding: clamp(12px, 1.1vw, 14px);
  border-radius: var(--vala-radius-md, 14px);
  background: linear-gradient(135deg, rgba(15, 50, 92, 0.72), rgba(14, 97, 126, 0.42));
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 30px rgba(2, 8, 23, 0.14);
  color: rgba(248, 250, 252, 0.96);
}

.vala-template-records .records-categories-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(240, 249, 255, 0.94);
  line-height: 1.2;
}

.vala-template-records .records-categories-selected {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(186, 230, 253, 0.82);
}

.vala-template-records .records-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vala-template-records .records-category-tile {
  margin: 0;
  padding: 8px 8px;
  min-height: 0;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  font: inherit;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  box-sizing: border-box;
}

.vala-template-records .records-category-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(186, 230, 253, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.vala-template-records .records-category-tile.is-active {
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(56, 189, 248, 0.14);
}

.vala-template-records .records-category-tile__label {
  font-size: 11px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.94);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.vala-template-records .records-category-add {
  margin-top: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: transparent;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-family: inherit;
  cursor: not-allowed;
  opacity: 0.55;
  box-sizing: border-box;
}

.vala-template-records .records-category-add__icon {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: rgba(186, 230, 253, 0.65);
}

.vala-template-records .records-category-add__text {
  font-size: 12px;
  font-weight: 650;
  color: rgba(186, 230, 253, 0.72);
}

@media (max-width: 900px) {
  .vala-template-records .records-page-shell .records-main-split {
    flex-direction: column;
  }

  .vala-template-records .records-page-shell .records-main-col--aside {
    position: static;
    max-height: none;
    overflow: visible;
    width: 100%;
  }
}

.vala-template-records .records-page-shell .records-quick-tile {
  padding: 8px 6px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  min-height: 0;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.vala-template-records .records-page-shell .records-quick-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(3, 74, 166, 0.16);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.vala-template-records .records-page-shell .records-quick-tile:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.vala-template-records .records-quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
  line-height: 1;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.vala-template-records .records-quick-tile--expense .records-quick-icon {
  background: rgba(220, 38, 38, 0.18);
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.24);
}

.vala-template-records .records-quick-tile--income .records-quick-icon {
  background: rgba(22, 163, 74, 0.2);
  color: #166534;
  border-color: rgba(22, 101, 52, 0.26);
}

.vala-template-records .records-quick-tile--debt .records-quick-icon {
  background: rgba(185, 28, 28, 0.2);
  color: #991b1b;
  border-color: rgba(153, 27, 27, 0.24);
}

.vala-template-records .records-quick-tile--receivable .records-quick-icon {
  background: rgba(5, 150, 105, 0.2);
  color: #166534;
  border-color: rgba(6, 95, 70, 0.24);
}

.vala-template-records .records-quick-tile--transfer .records-quick-icon {
  background: rgba(79, 70, 229, 0.2);
  color: #3730a3;
  border-color: rgba(55, 48, 163, 0.24);
}

.vala-template-records .records-quick-title {
  font-size: 12px;
  font-weight: 700;
  color: #101828;
  line-height: 1.2;
}

.vala-template-records .records-quick-sub {
  font-size: 10px;
  font-weight: 500;
  color: #667085;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

@media (max-width: 560px) {
.vala-template-records .records-quick-grid {
    gap: 5px;
  }

.vala-template-records .records-page-shell .records-quick-tile {
    padding: 8px 4px;
  }

.vala-template-records .records-quick-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

.vala-template-records .records-quick-title {
    font-size: 11px;
  }

.vala-template-records .records-quick-sub {
    font-size: 9px;
  }
}

.vala-template-records .records-list-panel.records-list-section {
  padding: clamp(14px, 1.25vw, 18px);
  border-radius: var(--vala-radius-md, 14px);
  background: linear-gradient(135deg, rgba(15, 50, 92, 0.72), rgba(14, 97, 126, 0.42));
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 30px rgba(2, 8, 23, 0.14);
  color: rgba(248, 250, 252, 0.96);
  overflow-x: hidden;
}

.vala-template-records .records-list-section-title--inline {
  flex: 0 0 auto;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.96);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.vala-template-records .records-list-toolbar--unified {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.vala-template-records .records-list-toolbar--unified .records-toolbar-search {
  flex: 1 1 160px;
  min-width: 0;
}

.vala-template-records .records-toolbar-search {
  height: 38px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0 12px;
  font-size: 13px;
  color: rgba(248, 250, 252, 0.96);
  background: rgba(3, 24, 56, 0.35);
}

.vala-template-records .records-toolbar-search:focus {
  outline: 2px solid rgba(125, 211, 252, 0.45);
  outline-offset: 0;
  border-color: rgba(125, 211, 252, 0.55);
}

.vala-template-records .records-toolbar-search::placeholder {
  color: rgba(186, 230, 253, 0.55);
}

.vala-template-records .records-toolbar-filter,
.vala-template-records .records-toolbar-sort,
.vala-template-records .records-toolbar-category {
  flex: 0 1 auto;
  width: min(132px, 22vw);
  min-width: 96px;
  height: 38px;
  box-sizing: border-box;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.2;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0 8px;
  color: rgba(248, 250, 252, 0.96);
  background: rgba(3, 24, 56, 0.35);
}

.vala-template-records .records-toolbar-filter:focus,
.vala-template-records .records-toolbar-sort:focus,
.vala-template-records .records-toolbar-category:focus {
  outline: 2px solid rgba(125, 211, 252, 0.45);
  outline-offset: 0;
  border-color: rgba(125, 211, 252, 0.55);
}

.vala-template-records .records-list-rows.records-list-rows--modern {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  overflow: hidden;
  background: rgba(3, 24, 56, 0.2);
}

/* Boş liste — kompakt */
.vala-template-records .records-list-empty {
  text-align: center;
  padding: 20px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(3, 24, 56, 0.25);
}

.vala-template-records .records-list-empty-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.96);
}

.vala-template-records .records-list-empty-text {
  margin: 0 auto 14px;
  max-width: 400px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(186, 230, 253, 0.78);
}

.vala-template-records .records-list-empty-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.vala-template-records .records-list-empty-primary {
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.vala-template-records .records-list-empty-secondary {
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* İşlem satırı — tek satır grid (cam liste içinde) */
.vala-template-records .records-tx-row--modern {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 9px 12px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: transparent;
  box-shadow: none;
  min-width: 0;
}

.vala-template-records .records-tx-row--modern:last-child {
  border-bottom: none;
}

.vala-template-records .records-tx-cell {
  font-size: 12px;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.94);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vala-template-records .records-tx-cell--title {
  font-weight: 750;
  color: rgba(248, 250, 252, 0.98);
}

.vala-template-records .records-tx-cell--account {
  font-weight: 600;
  color: rgba(186, 230, 253, 0.85);
}

.vala-template-records .records-tx-cell--meta {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  color: rgba(186, 230, 253, 0.78);
}

.vala-template-records .records-tx-cell--date {
  display: block;
  text-align: right;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: rgba(186, 230, 253, 0.78);
}

.vala-template-records .records-tx-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* Stage 1: client-parsed #tags (not persisted as separate fields) */
.vala-template-records .records-tx-cell--hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  max-width: 100%;
}

/* Deterministic category suggestion preview (read-only, client-only) */
.vala-template-records .records-tx-suggestion {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  max-width: 100%;
  margin-top: 2px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.35);
  white-space: normal;
}

.vala-template-records .records-tx-suggestion__row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}

.vala-template-records .records-tx-suggestion__kicker {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.92);
}

.vala-template-records .records-tx-suggestion__label {
  font-size: 11px;
  font-weight: 750;
  color: rgba(226, 232, 240, 0.97);
}

.vala-template-records .records-tx-suggestion__meter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.vala-template-records .records-tx-suggestion__meter-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(71, 85, 105, 0.65);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.5);
}

.vala-template-records .records-tx-suggestion__meter-dot.is-on {
  background: rgba(52, 211, 153, 0.92);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.35);
}

.vala-template-records .records-tx-suggestion--medium .records-tx-suggestion__meter-dot.is-on {
  background: rgba(251, 191, 36, 0.95);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.28);
}

.vala-template-records .records-tx-suggestion--low .records-tx-suggestion__meter-dot.is-on {
  background: rgba(248, 113, 113, 0.92);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.28);
}

.vala-template-records .records-tx-suggestion__reason {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(186, 230, 253, 0.72);
}

.vala-template-records .records-tx-suggestion__row--main {
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 6px 10px;
}

.vala-template-records .records-tx-suggestion__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.vala-template-records .records-tx-suggestion__btn {
  margin: 0;
  padding: 3px 8px;
  border-radius: 8px;
  font: inherit;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.4);
  color: rgba(226, 232, 240, 0.88);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.vala-template-records .records-tx-suggestion__btn:hover {
  border-color: rgba(125, 211, 252, 0.38);
  background: rgba(30, 41, 59, 0.55);
}

.vala-template-records .records-tx-suggestion__btn:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.55);
  outline-offset: 1px;
}

.vala-template-records .records-tx-suggestion__btn--accept {
  border-color: rgba(52, 211, 153, 0.35);
  color: rgba(167, 243, 208, 0.95);
}

.vala-template-records .records-tx-suggestion__btn--reject {
  border-color: rgba(248, 113, 113, 0.28);
  color: rgba(254, 202, 202, 0.88);
}

.vala-template-records .records-tx-suggestion--pending.records-tx-suggestion--high {
  border-color: rgba(125, 211, 252, 0.32);
  background: rgba(15, 23, 42, 0.42);
}

.vala-template-records .records-tx-suggestion--pending.records-tx-suggestion--low {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.28);
}

.vala-template-records .records-tx-suggestion--pending.records-tx-suggestion--low .records-tx-suggestion__btn {
  opacity: 0.88;
}

.vala-template-records .records-tx-suggestion--accepted {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(6, 78, 59, 0.22);
}

.vala-template-records .records-tx-suggestion__accepted-banner {
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.03em;
  color: rgba(167, 243, 208, 0.98);
}

.vala-template-records .records-tx-suggestion--rejected-dismissed {
  padding: 4px 8px;
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.22);
}

.vala-template-records .records-tx-suggestion__rejected-note {
  font-size: 10px;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.78);
}

.vala-template-records .records-hashtag-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.vala-template-records .records-hashtag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  font-family: inherit;
  cursor: pointer;
  color: rgba(125, 211, 252, 0.98);
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(125, 211, 252, 0.28);
  max-width: 100%;
  box-sizing: border-box;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.vala-template-records .records-hashtag-chip:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(125, 211, 252, 0.45);
}

.vala-template-records .records-hashtag-chip:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.65);
  outline-offset: 2px;
}

.vala-template-records .records-hashtag-chip.is-active,
.vala-template-records .records-hashtag-chip.is-selected {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.25);
}

/* Active hashtag filter bar (client-side only) */
.vala-template-records .records-hashtag-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(15, 23, 42, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.vala-template-records .records-hashtag-filter-bar__label {
  font-size: 12px;
  font-weight: 650;
  color: rgba(186, 230, 253, 0.85);
}

.vala-template-records .records-hashtag-filter-bar__tag {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(248, 250, 252, 0.96);
}

.vala-template-records .records-hashtag-filter-bar__clear {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: rgba(248, 250, 252, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.vala-template-records .records-hashtag-filter-bar__clear:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.vala-template-records .records-hashtag-filter-bar__clear:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.55);
  outline-offset: 2px;
}

.vala-template-records .records-hashtag-filter-bar__clear-x {
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  opacity: 0.88;
}

.vala-template-records .records-list-empty--hashtag-filter .records-list-empty-title {
  color: rgba(248, 250, 252, 0.96);
}

/* Client-only hashtag usage summary (no API) */
.vala-template-records .records-hashtag-analytics {
  margin: 0 0 clamp(14px, 1.6vw, 18px);
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  background:
    linear-gradient(155deg, rgba(15, 23, 42, 0.55), rgba(30, 41, 59, 0.38)),
    linear-gradient(125deg, rgba(56, 189, 248, 0.08), transparent);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 10px 28px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.vala-template-records .records-hashtag-analytics__head {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.72);
  margin: 0 0 10px;
}

.vala-template-records .records-hashtag-analytics__empty {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(186, 230, 253, 0.78);
}

.vala-template-records .records-hashtag-analytics__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.vala-template-records .records-hashtag-analytics__chip {
  gap: 4px;
  padding: 5px 10px;
  font-size: 11px;
}

.vala-template-records .records-hashtag-analytics__label {
  font-weight: 750;
}

.vala-template-records .records-hashtag-analytics__count {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: rgba(186, 230, 253, 0.88);
  margin-left: 1px;
}

.vala-template-records .records-tx-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.vala-template-records .records-tx-edit-link {
  margin-top: 2px;
  font-size: 12px;
  padding: 4px 10px;
  white-space: nowrap;
}

.vala-template-records .records-tx-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(224, 242, 254, 0.92);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vala-template-records .records-tx-row--modern .records-tx-pill {
  margin: 0;
  justify-self: start;
}

/* Eski (ikon + 3 sütun) satır — modern tek satır grid’i EZMEMELİ (kaskat sırada altta kalıyordu). */
.vala-template-records .records-tx-row:not(.records-tx-row--modern) {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 32px rgba(3, 37, 140, 0.1);
  min-width: 0;
}

.vala-template-records .records-tx-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.vala-template-records .records-tx-icon--borc {
  background: rgba(249, 115, 22, 0.14);
  color: #ea580c;
}

.vala-template-records .records-tx-icon--alacak {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}

.vala-template-records .records-tx-icon--diger {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.vala-template-records .records-tx-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.vala-template-records .records-tx-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #101828;
  line-height: 1.3;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vala-template-records .records-tx-meta {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #667085;
  line-height: 1.35;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vala-template-records .records-tx-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1px;
}

.vala-template-records .records-tx-pill--done {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.vala-template-records .records-tx-pill--overdue {
  background: rgba(239, 68, 68, 0.12);
  color: #b42318;
}

.vala-template-records .records-tx-pill--active {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.vala-template-records .records-tx-row--modern .records-tx-pill--done {
  background: rgba(16, 185, 129, 0.16);
  color: rgba(167, 243, 208, 0.98);
}

.vala-template-records .records-tx-row--modern .records-tx-pill--overdue {
  background: rgba(239, 68, 68, 0.18);
  color: rgba(254, 202, 202, 0.98);
}

.vala-template-records .records-tx-row--modern .records-tx-pill--active {
  background: rgba(245, 158, 11, 0.16);
  color: rgba(253, 230, 138, 0.96);
}

.vala-template-records .records-tx-aside {
  text-align: right;
  flex-shrink: 0;
  padding-left: 4px;
}

.vala-template-records .records-tx-amount {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.vala-template-records .records-tx-amount--borc {
  color: #b42318;
}

.vala-template-records .records-tx-amount--alacak {
  color: #047857;
}

.vala-template-records .records-tx-row--modern .records-tx-amount {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
  text-align: right;
  justify-self: end;
}

.vala-template-records .records-tx-row--modern .records-tx-amount--borc {
  color: rgba(254, 202, 202, 0.98);
}

.vala-template-records .records-tx-row--modern .records-tx-amount--alacak {
  color: rgba(167, 243, 208, 0.98);
}

.vala-template-records .records-tx-row--modern .records-tx-amount--neutral {
  color: rgba(224, 242, 254, 0.92);
}

.vala-template-records .records-tx-type {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #667085;
}

@media (max-width: 720px) {
  .vala-template-records .records-list-toolbar--unified {
    flex-wrap: wrap;
  }

  .vala-template-records .records-list-toolbar--unified .records-toolbar-search {
    flex: 1 1 100%;
    width: 100%;
  }

  .vala-template-records .records-toolbar-filter,
  .vala-template-records .records-toolbar-sort,
  .vala-template-records .records-toolbar-category {
    flex: 1 1 calc(50% - 5px);
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .vala-template-records .records-list-rows.records-list-rows--modern { overflow-x: hidden; }
}

/* Section cards — açık “paper” kartlar (cam paneller hariç) */
.vala-template-records .records-page-shell .card.page-section:not(.accounts-quick-strip):not(.dashboard-quick-unified-card) {
  border-radius: var(--vala-radius-md, 14px);
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 30px rgba(2, 8, 23, 0.14);
  background: linear-gradient(135deg, rgba(15, 50, 92, 0.72), rgba(14, 97, 126, 0.42));
  color: rgba(248, 250, 252, 0.96);
}

.vala-template-records .records-page-shell .page-section.records-summary-grid > .card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 50px rgba(3, 37, 140, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 255, 0.88));
  color: #101828;
}

/* Outer shell/stage spacing owned by vala-app-layout.css. */

.vala-template-records .records-page-shell button.records-quick-tile {
  font: inherit;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border-style: solid;
}

.vala-template-records .records-flash {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  border: 1px solid rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.vala-template-records .records-transfer-banner {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.vala-template-records .records-transfer-banner--warn {
  border: 1px solid rgba(217, 119, 6, 0.45);
  background: rgba(251, 191, 36, 0.15);
  color: #92400e;
}

.vala-template-records .records-transfer-optional {
  font-weight: 500;
  color: #64748b;
}
