/* ============================================================
   BAYİ TEMASI (2026-11-21) — siyah + koyu altın, Altin Lift markası.
   Bayide her zaman; ana firmada Ayarlar › Genel › Tema = Altın Lift ise (Distributor::altinBrand / themeHead), bütün stillerden SONRA.
   Tema seçilmeyen kiracılar etkilenmez.
   ============================================================ */
:root {
  --dg-black:   #0b0a08;
  --dg-black-2: #17140e;
  --dg-brown:   #2a2112;
  --dg-gold-d:  #7a5c1c;   /* koyu altın */
  --dg-gold:    #a8822f;
  --dg-gold-l:  #d6b468;
  --dg-gold-p:  #f1e2b8;   /* soluk altın (yazı vurgusu) */
  --dg-soft:    rgba(168, 130, 47, .10);

  /* nav2 kabuğu */
  --n2-top:       var(--dg-black);
  --n2-top-grad:  linear-gradient(90deg, #0b0a08 0%, #17140e 30%, #3a2c12 55%, #17140e 80%, #0b0a08 100%);
  --n2-top-2:     var(--dg-black-2);
  --n2-accent:    var(--dg-gold);
  --n2-accent-bg: #f8f1de;
  --brand-600:    var(--dg-gold);
}

/* FDS işaretleri (başlık kartı, düğmeler, vurgular) */
html body.fds {
  --fds-accent:      var(--dg-gold);
  --fds-accent-2:    var(--dg-gold-d);
  --fds-accent-3:    var(--dg-gold-l);
  --fds-violet:      var(--dg-gold-d);
  --fds-sky:         var(--dg-gold-l);
  --fds-warm:        var(--dg-gold-l);
  --fds-accent-soft: var(--dg-soft);
  --fds-hero-a:      var(--dg-black);
  --fds-hero-b:      #1d170c;
  --fds-hero-c:      #5e4516;
  --fds-hero-ink-2:  rgba(241, 226, 184, .72);
  --fds-card-bg:
    radial-gradient(120% 90% at 0% 0%, rgba(214, 180, 104, .10) 0, rgba(214, 180, 104, 0) 46%),
    linear-gradient(180deg, #ffffff 0%, #fffefb 100%);
  --fds-card-ring-h: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(168, 130, 47, .28);
}

/* Üst bar logosu: Altın işareti (siyah zemini koyu barda kaybolur) + beyaz yazı logosu */
.masthead.admin-masthead .brand.brand-fg.brand-altin { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; text-decoration: none; }
.masthead.admin-masthead .brand-altin-mark { display: block; width: 34px; height: 34px; mix-blend-mode: lighten; }
.masthead.admin-masthead .brand-altin-word { display: block; height: 16px; width: auto; }
@media (max-width: 700px) {
  .masthead.admin-masthead .brand-altin-mark { width: 28px; height: 28px; }
  .masthead.admin-masthead .brand-altin-word { height: 12px; }
}

/* Sayfa başlık kartı: siyah → koyu altın degrade (ana sistemdeki düz zemin kuralı bayide geçersiz — kullanıcı: siyah + koyu altın degrade) */
:root { --fds-hero-solid: #17140e; }
html body.fds .module-hero, html body .module-hero {
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(214, 180, 104, .30) 0, rgba(214, 180, 104, 0) 55%),
    radial-gradient(60% 120% at 0% 100%, rgba(168, 130, 47, .14) 0, rgba(168, 130, 47, 0) 60%),
    linear-gradient(135deg, #0b0a08 0%, #1d170c 50%, #5e4516 100%) !important;
}
.fds-fx .fds-blob.b1 { background: radial-gradient(closest-side, rgba(214, 180, 104, .55), rgba(214, 180, 104, .2) 45%, rgba(214, 180, 104, 0)); }
.fds-fx .fds-blob.b2 { background: radial-gradient(closest-side, rgba(168, 130, 47, .45), rgba(168, 130, 47, .16) 45%, rgba(168, 130, 47, 0)); }
.fds-fx .fds-blob.b3 { background: radial-gradient(closest-side, rgba(241, 226, 184, .22), rgba(241, 226, 184, .08) 45%, rgba(241, 226, 184, 0)); }
.fds-fx .fds-rim { background: linear-gradient(90deg, transparent, rgba(241, 226, 184, .45), rgba(214, 180, 104, .6), rgba(241, 226, 184, .45), transparent); }
html body.fds .module-hero .hero-title {
  background: linear-gradient(118deg, #ffffff 0%, #ffffff 36%, var(--dg-gold-p) 66%, var(--dg-gold-l) 100%);
  -webkit-background-clip: text; background-clip: text;
}
/* Ana düğme: akan altın */
html body.fds .module-hero .hero-btn:not(.hero-btn-ghost)::before,
html body.fds .module-hero .hero-btn:not(.hero-btn-ghost) .hero-btn-liq {
  background: linear-gradient(110deg, var(--dg-gold-l) 0%, var(--dg-gold) 30%, var(--dg-gold-d) 55%, var(--dg-gold) 80%, var(--dg-gold-l) 100%);
  background-size: 300% 100%;
}

/* Teklif formu başlıkları ve satır tablosu */
#elLines thead, #imSevk .im-table thead,
.el-card:not(#sec-client) > .el-card-head, #sec-lines > .el-lines-head, #sec-lists > .el-lines-head {
  background: linear-gradient(90deg, #0b0a08 0%, #17140e 30%, #3a2c12 55%, #17140e 80%, #0b0a08 100%);
}

/* Genel vurgu: birincil düğme, bağlantı, odak */
html body.admin-body .btn-primary, html body.admin-body .admin-btn-primary, html body.admin-body .fds-btn-primary {
  background: linear-gradient(135deg, var(--dg-black-2) 0%, var(--dg-gold-d) 100%);
  border-color: var(--dg-gold-d); color: #fff;
}
html body.admin-body .nav2-search:focus-within,
html body.admin-body .admin-form-input:focus { border-color: var(--dg-gold); box-shadow: 0 0 0 3px rgba(168, 130, 47, .16); }

/* Teklif formu: mor müşteri kartı, mavi özet kutusu, mor grup satırları → siyah / koyu altın */
html body #sec-client.el-card, html body .or-sec.or-try-sec {
  background: linear-gradient(135deg, #0b0a08 0%, #1d170c 55%, #5e4516 100%) !important;
}
#sec-client .el-seg button.on, .or-try button { color: var(--dg-gold-d) !important; }
#sec-client .el-lbl .req { color: var(--dg-gold-l); }
html body .el-sum-top { background: radial-gradient(120% 140% at 100% 0%, #6b4f18 0%, #2a2112 45%, #0b0a08 100%); }
html body .el-table tr.el-grp td, html body .el-table tr.el-grp:hover td {
  background: linear-gradient(90deg, #17140e 0%, #3a2c12 100%) !important; border-color: #17140e !important;
}
.el-table tr.el-comp td:first-child { box-shadow: inset 3px 0 0 var(--dg-gold); }
.el-table tr.is-opt .el-opt-mark { color: var(--dg-gold); }

/* Kullanıcı rozeti: altın */
html body .admin-masthead .user-avatar, html body .admin-masthead .user-menu-avatar {
  background: linear-gradient(135deg, var(--dg-gold-l) 0%, var(--dg-gold-d) 100%) !important; color: #fff;
}

/* ---------- Giriş sayfası (login.php) — bayi: siyah + koyu altın ---------- */
body.fg {
  --navy-900: #0b0a08; --navy-700: #17140e; --navy-600: #2a2112;
  --blue-700: #7a5c1c; --blue-600: #a8822f; --blue-500: #c49a45; --blue-50: #f8f1de;
  --cyan: #17140e; --info: #17140e; --info-bg: #f8f1de;
}
html:has(> body.fg .auth), html body.fg:has(.auth) {
  background: linear-gradient(135deg, #0b0a08 0%, #17140e 45%, #3a2c12 75%, #6b4f18 100%) fixed;
}
body.fg .auth .submit { background: linear-gradient(135deg, #17140e 0%, #7a5c1c 100%); }
body.fg .auth .submit:hover { background: linear-gradient(135deg, #2a2112 0%, #a8822f 100%); box-shadow: none; }
body.fg .auth .input:focus { box-shadow: 0 0 0 3px rgba(168, 130, 47, .16); }
body.fg .auth .af-tenant { background: #f8f1de; border-color: #ead9ab; color: #3a2c12; }
body.fg .auth select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M2.5 4L5 6.5L7.5 4' stroke='%23a8822f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
body.fg .art [fill="#0369a1"] { fill: #a8822f; }
body.fg .art [fill="#e0f2fe"] { fill: #f8f1de; }
.copyright, .copyright a { color: rgba(241, 226, 184, .72); }
.af-logo-altin { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px; border-radius: 12px;
                 background: linear-gradient(135deg, #0b0a08 0%, #2a2112 60%, #5e4516 100%); }
.af-logo-altin .ala-mark { width: 28px; height: 28px; display: block; mix-blend-mode: lighten; }
.af-logo-altin .ala-word { height: 13px; width: auto; display: block; }

/* ---------- Müşteri penceresi (clients.php .cdm-*) — mavi / yeşil / mor yerine siyah + koyu altın ---------- */
html body .cdm-hero { background: linear-gradient(108deg, #0b0a08 0%, #17140e 35%, #3a2c12 70%, #6b4f18 100%); }
html body .cdm-hero .cdm-avatar-lg { background: rgba(214, 180, 104, .16); border-color: rgba(214, 180, 104, .45); color: var(--dg-gold-p); }
html body .cdm-hero .cdm-edit-btn, html body .cdm-hero-btn { background: rgba(255, 255, 255, .08); border-color: rgba(214, 180, 104, .45); color: #fff; }
html body .cdm-hero-btn-report { background: linear-gradient(135deg, var(--dg-gold) 0%, var(--dg-gold-d) 100%); border-color: var(--dg-gold-l); color: #fff; }
html body .cdm-hero-btn-report:hover, html body .cdm-hero .cdm-edit-btn:hover { background: var(--dg-gold-l); border-color: var(--dg-gold-l); color: #0b0a08; }
html body .cdm-stat-green  { --cdm-from: #a8822f; --cdm-to: #6b4f18; }   /* tahsil edilen: altın */
html body .cdm-stat-purple { --cdm-from: #2a2112; --cdm-to: #0b0a08; }   /* bakiye: siyah */
html body .cdm-stat-blue   { --cdm-from: #5e4516; --cdm-to: #2a2112; }   /* sözleşmeler: koyu altın */
html body .cdm-stat-purple .cdm-stat-label { color: var(--dg-gold-l); opacity: 1; }
html body .contact-card { background: linear-gradient(135deg, #17140e 0%, #3a2c12 100%); box-shadow: none; }
html body .cc-avatar { background: rgba(214, 180, 104, .22); color: var(--dg-gold-p); }
html body .cc-primary-badge { background: rgba(214, 180, 104, .25); color: var(--dg-gold-p); }
html body .cc-primary-badge::before { background: var(--dg-gold-l); }
html body .cdm-section-link, html body #cdmElNew { color: var(--dg-gold-d) !important; }
html body .cdm-chip { border-color: #ead9ab; background: #fbf6e8; color: #3a2c12; }
html body .invoice-row:hover { border-color: #ead9ab; background: #fffdf7; }
html body .invoice-row .iv-no { color: #3a2c12; }

/* Sevkiyat listeleri bölüm satırı: altın bant */
html body .im-table tr.sec td, html body .im-table tr.sec:hover td { background: #fbf6e8 !important; border-color: #ead9ab; box-shadow: inset 3px 0 0 var(--dg-gold); color: #5e4516; }
