/*! FUL SERVIS LAYOUT FIX v56
   1) Evrak Yönetimi (documents.php) — split-grid sıkışması
   2) Tüm split-grid'lerde form bölümleri için akıllı genişlik
   3) Trust-grid yine yüksek specificity ile zorla tek kolon ortalı */

:root{
  --primary:#1B2A4E;--primary-mid:#2A3F6B;--primary-dark:#0F1A33;
  --beige:#C9A876;--beige-soft:#DFC79E;--beige-bg:#FAF6EE;--beige-200:#E5D4B0;--beige-darker:#6E532A;
  --text:#1F2A44;--text-strong:#0F1A33;--muted:#6B7588;
  --border:#E2E6EC;--surface:#FFFFFF;--surface-2:#F5F7FA;
}

/* =============================================================
   ADMİN — Evrak Yönetimi (documents.php) ve diğer split-grid sayfaları
   ÖNEMLİ: split-grid form içerikli sayfalarda 2 kolon dar kalıyor
   1280px altı tek kolon, üstü dengeli 2 kolon
   ============================================================= */

/* Documents-grid spesifik override — form üstte, liste altta */
html body .split-grid.documents-grid,
html body .documents-grid.split-grid{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:18px!important;
  margin-bottom:16px!important;
  align-items:start!important;
}

/* Form alanı içinde input/select tam genişlik ve fontsize */
html body .split-grid .card .form input,
html body .split-grid .card .form select,
html body .split-grid .card .form textarea,
html body .documents-grid .card .form input,
html body .documents-grid .card .form select,
html body .documents-grid .card .form textarea{
  width:100%!important;
  min-width:0!important;
  padding:10px 12px!important;
  font-size:14px!important;
  border-radius:8px!important;
  border:1px solid var(--border)!important;
  background:#fff!important;
  color:var(--text)!important;
  font-family:inherit!important;
  margin-top:6px!important;
  box-sizing:border-box!important;
}

/* Label içerikleri tam akış */
html body .split-grid .card .form > label,
html body .split-grid .card .form label,
html body .documents-grid .card .form label{
  display:block!important;
  width:100%!important;
  margin:0 0 14px!important;
  font-weight:600!important;
  font-size:13.5px!important;
  color:var(--text-strong)!important;
}

/* form-two: alt alta düşür eğer dar ise (1024 altı) */
@media(max-width:1280px){
  html body .split-grid.documents-grid,
  html body .documents-grid.split-grid{
    grid-template-columns:1fr!important;
  }
  html body .split-grid .form-two,
  html body .documents-grid .form-two{
    grid-template-columns:1fr 1fr!important;
  }
}
@media(max-width:900px){
  html body .split-grid .form-two,
  html body .documents-grid .form-two{
    grid-template-columns:1fr!important;
  }
}

/* Card içeriği genişlik */
html body .documents-grid .card,
html body .split-grid .card{
  min-width:0!important;
  width:100%!important;
}

/* Selected customer card düzgün */
html body .selected-customer-card{
  background:var(--beige-bg)!important;
  border:1px solid var(--beige-200)!important;
  border-radius:10px!important;
  padding:14px 16px!important;
  margin:0 0 14px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
}
html body .selected-customer-card b{
  display:block!important;
  color:var(--text-strong)!important;
  font-weight:700!important;
  font-size:14px!important;
}
html body .selected-customer-card span{
  display:block!important;
  color:var(--muted)!important;
  font-size:13px!important;
  font-weight:400!important;
  line-height:1.5!important;
}

/* Mega list (Belgeler kartı) */
html body .mega-list{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  width:100%!important;
}
html body .mega-list .mega-row,
html body a.mega-row{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:4px!important;
  padding:14px 16px!important;
  border:1px solid var(--border)!important;
  border-radius:10px!important;
  background:#fff!important;
  text-decoration:none!important;
  color:var(--text)!important;
  transition:border-color .18s ease,box-shadow .18s ease!important;
  width:100%!important;
}
html body .mega-list .mega-row:hover{
  border-color:var(--beige-200)!important;
  box-shadow:0 2px 6px rgba(15,26,51,.06)!important;
}
html body .mega-list .mega-row b{
  display:block!important;
  color:var(--text-strong)!important;
  font-weight:700!important;
  font-size:14.5px!important;
  margin:0!important;
}
html body .mega-list .mega-row span{
  display:block!important;
  color:var(--muted)!important;
  font-size:12.5px!important;
  font-weight:400!important;
  margin:0!important;
  line-height:1.4!important;
}

/* "Yükle" yeşil buton — bej */
html body .document-upload-form .btn.green,
html body .document-upload-form button.btn{
  background:var(--beige)!important;
  color:#fff!important;
  border-color:var(--beige)!important;
  width:100%!important;
  height:44px!important;
  font-size:14.5px!important;
  font-weight:700!important;
  border-radius:10px!important;
  margin-top:8px!important;
}
html body .document-upload-form .btn.green:hover{
  background:var(--beige-dark)!important;
  border-color:var(--beige-dark)!important;
}

/* Hero card açıklama düzgün */
html body section.dash-hero.card.form-hero{
  display:block!important;
  padding:28px 32px!important;
  background:linear-gradient(135deg,var(--primary) 0%,var(--primary-mid) 100%)!important;
  color:#fff!important;
  border-radius:14px!important;
  border:0!important;
  margin-bottom:20px!important;
}
html body section.dash-hero.card.form-hero .eyebrow{
  color:var(--beige-soft)!important;
}
html body section.dash-hero.card.form-hero h2{
  color:#fff!important;
  font-size:24px!important;
  margin:6px 0 8px!important;
  font-weight:700!important;
}
html body section.dash-hero.card.form-hero p{
  color:#C9D2E5!important;
  font-size:14.5px!important;
  margin:0!important;
  font-weight:400!important;
  max-width:780px!important;
  line-height:1.65!important;
}

/* =============================================================
   ÖN YÜZ — TRUST GRID yine zorla tek kolon (v55 etkili olmadıysa diye)
   En yüksek specificity ile
   ============================================================= */
html body section.seo-trust .container.trust-grid,
html body .seo-trust .container.trust-grid,
html body section.seo-trust .trust-grid,
html body .seo-trust .trust-grid,
html body .container.trust-grid{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:36px!important;
  max-width:1240px!important;
  margin:0 auto!important;
  padding:0 24px!important;
  width:100%!important;
  grid-template-columns:none!important;
}

html body .seo-trust .trust-copy,
html body section.seo-trust .trust-copy{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  text-align:center!important;
  gap:14px!important;
  max-width:780px!important;
  margin:0 auto!important;
  padding:0!important;
  background:transparent!important;
  width:100%!important;
}
html body .seo-trust .trust-copy h2,
html body section.seo-trust .trust-copy h2{
  font-size:clamp(24px,2.8vw,32px)!important;
  text-align:center!important;
  margin:0!important;
}
html body .seo-trust .trust-copy p,
html body section.seo-trust .trust-copy p{
  text-align:center!important;
  margin:0 auto!important;
}

html body .seo-trust .trust-copy ul,
html body section.seo-trust .trust-copy ul{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px 24px!important;
  max-width:720px!important;
  margin:14px auto 0!important;
  width:100%!important;
}

html body .seo-trust .trust-stats,
html body section.seo-trust .trust-stats{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
  width:100%!important;
  max-width:1180px!important;
  margin:0 auto!important;
}

@media(max-width:1024px){
  html body .seo-trust .trust-stats{grid-template-columns:repeat(2,1fr)!important;max-width:680px!important}
}
@media(max-width:640px){
  html body .seo-trust .trust-copy ul{grid-template-columns:1fr!important;max-width:380px!important}
  html body .seo-trust .trust-stats{grid-template-columns:1fr 1fr!important;max-width:480px!important}
}
@media(max-width:380px){
  html body .seo-trust .trust-stats{grid-template-columns:1fr!important;max-width:300px!important}
}

/* =============================================================
   Tüm CRUD form sayfalarında split-grid genişlik ayarı
   (form yer alıyorsa, tek kolon güvenli)
   ============================================================= */
@media(max-width:1280px){
  html body .split-grid:has(.form),
  html body .split-grid:has(form){
    grid-template-columns:1fr!important;
  }
}
