/* Arı CRM — katman stilleri ve temalar. Temalar yalnızca renk değişkenlerini değiştirir; ekranlar ve işlevler aynıdır. */

/* ---- Tema: MyBasic (varsayılan) — değişkenler app.css :root içinde ---- */

/* ---- Tema: Arı Fuarcılık — sarı / siyah kurumsal görünüm ---- */
:root[data-theme='ari'] {
  --bar: #141414;
  --bar-ink: #ffd21f;
  --side: #1f1f1f;
  --side-on: #ffd21f;
  --side-on-ink: #141414;
  --bg: #f6f5f0;
  --card: #fff;
  --ink: #17171a;
  --quiet: #5f5f66;
  --line: #d9d6c8;
  --soft: #f1eedf;
  --label: #7a6200;
  --link: #1d4e89;
  --accent: #ffd21f;
  --accent-ink: #141414;
  --chip: #f3efd9;
  --head: #f6edc4;
  --fab2: #3a3a3a;
}
:root[data-theme='ari'] .top .logo b {
  color: #ffd21f;
}
:root[data-theme='ari'] .top .search span {
  color: #141414;
}
:root[data-theme='ari'] .side a {
  background: rgba(255, 255, 255, 0.07);
}
:root[data-theme='ari'] .side a:hover {
  background: rgba(255, 210, 31, 0.22);
}
:root[data-theme='ari'] .side a.on,
:root[data-theme='ari'] .side a.on:hover {
  background: var(--side-on);
}
:root[data-theme='ari'] .side a.add,
:root[data-theme='ari'] .side a.add:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
:root[data-theme='ari'] .tile .num {
  color: #141414;
}
:root[data-theme='ari'] .it .tog {
  color: #a47c00;
}
:root[data-theme='ari'] input:focus,
:root[data-theme='ari'] select:focus,
:root[data-theme='ari'] textarea:focus {
  outline: 2px solid #ffe680;
  border-color: #a47c00;
}
:root[data-theme='ari'] .cc:hover,
:root[data-theme='ari'] a.tile:hover {
  border-color: #a47c00;
  box-shadow: 0 1px 4px rgba(164, 124, 0, 0.25);
}
:root[data-theme='ari'] .login .logo {
  color: #141414;
}
:root[data-theme='ari'] .login .logo b {
  color: #c79a00;
}

/* ---- Arama sonuçları ---- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tabs a {
  padding: 5px 12px;
  border-radius: 16px;
  background: var(--chip);
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}
.tabs a.on {
  background: var(--bar);
  color: var(--bar-ink, #fff);
}
h2.grp {
  margin: 14px 2px 6px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.snip {
  font-size: 13px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

/* ---- Raporlama çubuğu ---- */
.rbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--soft);
}
.rbar select {
  width: auto;
  min-width: 220px;
  flex: 1;
}
label.inl {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
}
.quick {
  align-self: center;
  font-size: 13px;
}
.sum {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.sum .tile {
  text-align: left;
  padding: 8px 10px;
}
.sum .tile td:nth-child(2) {
  text-align: right;
  font-weight: 700;
  padding: 2px 6px;
}
.sum .tile td:last-child {
  text-align: right;
  font-weight: 400;
  width: 38px;
}
.feed.tk li {
  border-bottom: 1px solid var(--soft);
  padding: 6px 2px;
}

/* Kişi bazlı kısıtlar: yapılamayan işlemin düğmesi gösterilmez (asıl denetim sunucuda) */
body[data-limits~='no_export'] a[href^='/api/export'],
body[data-limits~='no_export'] #rexcel,
body[data-limits~='hide_contacts'] a[href^='/api/export'],
body[data-limits~='hide_contacts'] #rexcel,
body[data-limits~='no_delete'] #del,
body[data-limits~='no_delete'] [data-delact] {
  display: none !important;
}

/* Her alanda arama + alan ölçütleri */
.filters.crit {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  align-items: center;
}
.filters.crit input[type='search'] {
  font-size: 15px;
  padding: 9px 12px;
}
.filters.crit input[type='search'] {
  flex: 1 1 320px;
  min-width: 240px;
}
.filters.crit #kfield {
  flex: 0 1 260px;
  width: auto;
}
.kform {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.kform select,
.kform input {
  width: auto;
}
.kchips {
  margin: 6px 0 2px;
}
.chip.kc {
  background: var(--bar);
  color: var(--bar-ink, #fff);
  padding: 3px 10px;
}
.chip.kc b {
  font-weight: 700;
}
.chip.kc a {
  color: inherit;
  text-decoration: none;
  margin-left: 6px;
}
