/* Ekstre yükleme sayfası (Views/EkstreYukle/Index.cshtml): site stillerinden bağımsız, tek dosya.
   Yazı tipleri sitedeki kendi barındırdığımız dosyaların kopyası (yukle hostu yalnız /assets/ekstre-yukle/* sunar). */
@font-face {
    font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url(inter-tr.woff2) format("woff2");
}
@font-face {
    font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
    src: url(space-grotesk-tr.woff2) format("woff2");
}

:root {
    --yesil: #1c9344;          /* logodaki yeşil */
    --yesil-dugme: #17803b;    /* beyaz yazıyla AA */
    --yesil-koyu: #11632d;
    --nane: #e3f1e7;
    --murekkep: #0f2e1e;
    --soluk: #4a6455;
    --zemin: #eef5f0;
    --kagit: #ffffff;
    --cizgi: #cfdfd4;
    --amber: #8a5300;
    --amber-zemin: #fff4dc;
    --kirmizi: #b42318;
    --kirmizi-zemin: #fdeceb;
    --odak: #1c9344;
    --govde: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --baslik: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    font-family: var(--govde);
    font-size: 17px;
    line-height: 1.55;
    background: var(--zemin);
    color: var(--murekkep);
    -webkit-font-smoothing: antialiased;
}


.ey-kap { max-width: 760px; margin: 0 auto; padding: 14px 16px 16px; }

/* Üst bilgi */
/* logo solda, başlık ortada: sağdaki boş sütun logoyla aynı genişlikte */
.ey-ust { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 10px; margin-bottom: 14px; }
.ey-ust img { border-radius: 8px; flex-shrink: 0; }
.ey-ust p { margin: 0; text-align: center; text-wrap: balance; font-family: var(--baslik); font-weight: 600; font-size: 15px; line-height: 1.25; }
.ey-ust p span { display: block; font-family: var(--govde); font-weight: 400; font-size: 13px; color: var(--soluk); }

h1 {
    font-family: var(--baslik);
    font-weight: 600;
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -.015em;
    margin: 0 0 12px;
    text-align: center;
    text-wrap: balance;
}

h2 {
    font-family: var(--baslik);
    font-weight: 600;
    font-size: 19px;
    line-height: 1.25;
    margin: 0 0 10px;
}

/* Adım göstergesi */
.ey-adimlar {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    font-size: 14px;
}
.ey-adimlar li {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 7px;
    border-top: 3px solid var(--cizgi);
    color: var(--soluk);
    transition: border-color .3s, color .3s;
}
.ey-adim-no {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-family: var(--baslik);
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.ey-adimlar li[data-durum="simdi"] { border-top-color: var(--yesil); color: var(--murekkep); font-weight: 600; }
.ey-adimlar li[data-durum="simdi"] .ey-adim-no { background: var(--murekkep); border-color: var(--murekkep); color: #fff; }
.ey-adimlar li[data-durum="bitti"] { border-top-color: var(--yesil); color: var(--yesil-koyu); }
.ey-adimlar li[data-durum="bitti"] .ey-adim-no { background: var(--yesil); border-color: var(--yesil); color: transparent; position: relative; }
.ey-adimlar li[data-durum="bitti"] .ey-adim-no::after {
    content: "";
    position: absolute;
    left: 7px; top: 4px;
    width: 5px; height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Ana kâğıt */
.ey-sayfa {
    background: var(--kagit);
    border: 1px solid var(--cizgi);
    border-radius: 6px;
    padding: 16px 24px 18px;
    box-shadow: 0 1px 0 #d9e7dd, 0 12px 32px -18px rgba(15, 46, 30, .25);
}

.ey-adim { display: flex; flex-direction: column; }

label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 4px; }

input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    font: inherit;
    font-size: 17px;
    border: 1.5px solid #b9cdbf;
    border-radius: 6px;
    background: #fff;
    color: inherit;
}
input[type="text"]::placeholder { color: #7c9184; }
input[type="text"]:hover { border-color: #93b19c; }

:focus-visible { outline: 3px solid var(--odak); outline-offset: 2px; }
input[type="text"]:focus-visible { outline-offset: 0; border-color: var(--yesil); }

.ey-tuzak { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ey-gizli { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cf-turnstile { margin-top: 14px; display: flex; justify-content: center; min-height: 65px; }

.ey-dugme {
    margin-top: 14px;
    padding: 11px 20px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--yesil-dugme);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color .15s;
}
.ey-dugme:hover { background: var(--yesil-koyu); }
#adim1 .ey-dugme { align-self: flex-start; min-width: 200px; }
.ey-dugme:disabled { opacity: .65; cursor: progress; }
.ey-dugme-ikincil { margin-top: 0; padding: 9px 16px; background: var(--kagit); color: var(--yesil-koyu); box-shadow: inset 0 0 0 1.5px #9fbea9; }
.ey-dugme-ikincil:hover { background: #d2e8d9; }

.ey-baglanti {
    padding: 4px 2px;
    font: inherit;
    font-size: 15px;
    background: none;
    border: 0;
    color: var(--yesil-koyu);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.ey-baglanti:hover { color: var(--murekkep); }

/* Mali müşavir kartı */
.ey-mm {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 10px;
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--cizgi);
}
.ey-mm-bas {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--nane);
    color: var(--yesil-koyu);
    font-family: var(--baslik);
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}
.ey-mm-ad { margin: 0; line-height: 1.25; min-width: 0; }
.ey-mm-ad span { display: block; font-size: 13px; color: var(--soluk); }
.ey-mm-ad strong { font-weight: 600; letter-spacing: .04em; overflow-wrap: anywhere; }
.ey-mm-onay { color: var(--yesil); display: inline-flex; align-self: flex-end; }
.ey-mm .ey-baglanti { margin-left: auto; }
/* teslimde alıcı dekontta yazılı: müşavir satırı yer kaplamasın */
#adim2:has(#teslim:not([hidden])) .ey-mm { display: none; }

/* Gönderen alanları */
.ey-alanlar { display: grid; grid-template-columns: 1fr 190px; gap: 12px; margin-bottom: 14px; }

/* Bırakma alanı: tek satırlık yatay düzen; dosya varken daha da incelir */
.ey-birak {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px dashed #9fbea9;
    border-radius: 8px;
    background: #f8fbf9;
    color: var(--soluk);
    cursor: pointer;
    transition: border-color .15s, background-color .15s, padding .15s;
}
.ey-birak > * { pointer-events: none; } /* sürüklerken alt öğeler dragleave tetiklemesin */
.ey-birak-ikon { color: var(--yesil); flex-shrink: 0; transition: transform .2s ease; }
.ey-birak-metin { display: flex; flex-direction: column; min-width: 0; }
.ey-birak-baslik { font-weight: 600; color: var(--murekkep); font-size: 16px; line-height: 1.35; }
.ey-birak-baslik u { color: var(--yesil-koyu); text-underline-offset: 3px; }
.ey-birak-not { font-size: 13px; }
#adim2:has(.ey-liste li) .ey-birak { padding-top: 8px; padding-bottom: 8px; }
#adim2:has(.ey-liste li) .ey-birak-not { display: none; }
.ey-birak:hover { border-color: var(--yesil); background: #f2f8f4; }
.ey-birak.ey-ustunde {
    border-style: solid;
    border-color: var(--yesil);
    background: var(--nane);
}
.ey-birak.ey-ustunde .ey-birak-ikon { transform: translateY(-3px) scale(1.08); }

.ey-pdf-not { margin: 6px 0 0; font-size: 13px; color: var(--amber); }

/* "Ekstreyi bankamdan nasıl indiririm?": kapalıyken tek satır; açılınca kısa adımlar */
.ey-nasil { margin: 4px 0 0; font-size: 13px; color: var(--soluk); }
.ey-nasil summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--yesil-koyu);
    font-weight: 500;
    list-style: none;
    border-radius: 4px;
}
.ey-nasil summary::-webkit-details-marker { display: none; }
.ey-nasil summary::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .15s ease;
}
.ey-nasil[open] summary::before { transform: rotate(45deg); }
.ey-nasil summary:hover { color: var(--murekkep); }
.ey-nasil summary:focus-visible { outline: 2px solid var(--odak); outline-offset: 2px; }
.ey-nasil ol {
    margin: 6px 0 0;
    padding: 8px 12px 8px 30px;
    border-left: 3px solid var(--yesil);
    background: var(--nane);
    border-radius: 0 6px 6px 0;
    color: var(--murekkep);
}
.ey-nasil li + li { margin-top: 2px; }
.ey-nasil p { margin: 6px 0 0; }

.ey-hata {
    margin: 10px 0 0;
    padding: 8px 12px;
    border-left: 3px solid var(--kirmizi);
    background: var(--kirmizi-zemin);
    color: var(--kirmizi);
    font-weight: 500;
    font-size: 15px;
    border-radius: 0 6px 6px 0;
}

/* Dosya satırları: her dosya tek satır */
.ey-liste { list-style: none; margin: 10px 0 0; padding: 0; }
.ey-liste:empty { display: none; }
.ey-liste li {
    display: grid;
    grid-template-columns: 26px minmax(80px, 1fr) auto auto;
    gap: 2px 12px;
    align-items: center;
    padding: 7px 0;
    border-top: 1px solid #e3ece6;
    font-size: 14px;
}
.ey-liste li:last-child { border-bottom: 1px solid #e3ece6; }
.ey-tur {
    grid-column: 1;
    grid-row: 1;
    width: 26px;
    height: 30px;
    border-radius: 2px 8px 2px 2px;
    display: grid;
    place-items: end center;
    padding-bottom: 3px;
    font-family: var(--baslik);
    font-size: 8.5px;
    font-weight: 700;
    color: #fff;
    background: var(--yesil);
}
.ey-tur[data-tur="pdf"] { background: #9b3b2e; }
.ey-tur[data-tur="csv"] { background: #3e6b55; }
.ey-ad { grid-column: 2; grid-row: 1; font-weight: 500; font-size: 15px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ey-ayrinti {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    gap: 10px;
    white-space: nowrap;
    color: var(--soluk);
    font-variant-numeric: tabular-nums;
}
.ey-durum { grid-column: 4; grid-row: 1; font-weight: 600; white-space: nowrap; color: var(--soluk); text-align: right; }
.ey-cubuk { grid-column: 2 / -1; grid-row: 2; height: 3px; border-radius: 3px; background: #e3ece6; overflow: hidden; }
.ey-cubuk::after {
    content: "";
    display: block;
    height: 100%;
    width: 35%;
    background: var(--yesil);
    animation: ey-akis 1.1s ease-in-out infinite;
}
@keyframes ey-akis { from { transform: translateX(-100%); } to { transform: translateX(290%); } }

li.ey-tamam .ey-durum { color: var(--yesil-koyu); }
li.ey-zaten .ey-durum { color: var(--amber); }
li.ey-hatali .ey-tur { background: #dfe8e2; color: #6b7f72; }
li.ey-hatali .ey-durum { color: var(--kirmizi); }
/* hata metni uzun olabilir: ikinci satıra iner */
li.ey-hatali .ey-ayrinti { grid-column: 2 / -1; grid-row: 2; white-space: normal; color: var(--kirmizi); font-size: 13.5px; line-height: 1.4; }

/* Teslim dekontu: sayfanın tek gösterişli öğesi */
.ey-teslim {
    margin: 14px -24px -18px;
    padding: 14px 24px 16px;
    background: var(--zemin);
    border-top: 1px solid var(--cizgi);
    border-radius: 0 0 6px 6px;
}
/* hatalı satır yoksa tepsi kâğıdın tamamını kaplar */
.ey-liste:empty + .ey-teslim { margin-top: -16px; border-top: 0; border-radius: 6px; }
.ey-dekont {
    --kenar: 8px;
    position: relative;
    background: #fff;
    padding: 14px 20px calc(10px + var(--kenar));
    border: 1px solid var(--cizgi);
    border-bottom: 0;
    background-image: linear-gradient(var(--yesil), var(--yesil));
    background-size: 100% 4px;
    background-repeat: no-repeat;
    /* yırtık alt kenar */
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--kenar) * 2) 100%;
    mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--kenar) * 2) 100%;
    animation: ey-cikis .7s cubic-bezier(.2, .8, .2, 1) both;
}
.ey-dekont-golge { filter: drop-shadow(0 6px 10px rgba(15, 46, 30, .14)); }
@keyframes ey-cikis {
    from { clip-path: inset(0 0 100% 0); transform: translateY(-12px); }
    to { clip-path: inset(0 0 -20px 0); transform: none; }
}
.ey-dekont-ust { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ey-dekont h2 { font-size: 22px; margin: 0; letter-spacing: -.01em; color: var(--yesil-koyu); }
.ey-dekont h2 span { font-family: var(--govde); font-size: 13px; font-weight: 400; color: var(--soluk); letter-spacing: 0; margin-left: 6px; }
.ey-dekont-muhur { color: var(--yesil); transform: rotate(-12deg); flex-shrink: 0; opacity: .9; }

.ey-dekont-bilgi { margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 6px 20px; }
.ey-dekont-bilgi dt { font-size: 12.5px; color: var(--soluk); line-height: 1.3; }
.ey-dekont-bilgi dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ey-rakam { font-variant-numeric: tabular-nums; font-family: var(--baslik); letter-spacing: .02em; }

/* delikli koparma çizgisi, iki yanda yarım daire çentik */
.ey-delik {
    position: relative;
    height: 2px;
    margin: 12px -20px 4px;
    background: radial-gradient(circle, #b9cdbf 1.5px, transparent 2px) 0 50% / 9px 2px repeat-x;
}
.ey-delik::before, .ey-delik::after {
    content: "";
    position: absolute;
    top: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--zemin);
    box-shadow: inset 0 0 0 1px var(--cizgi);
}
.ey-delik::before { left: -9px; }
.ey-delik::after { right: -9px; }

.ey-dekont-dosyalar { list-style: none; margin: 0; padding: 0; counter-reset: dk; }
.ey-dekont-dosyalar li {
    counter-increment: dk;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto auto;
    gap: 0 12px;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px dashed #dbe6de;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}
.ey-dekont-dosyalar li::before { content: counter(dk) "."; color: var(--soluk); font-family: var(--baslik); font-size: 13px; }
.ey-dk-banka { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ey-dk-iban { font-family: var(--baslik); font-weight: 600; letter-spacing: .04em; }
.ey-dk-tarih { font-family: var(--baslik); font-size: 14px; text-align: right; white-space: nowrap; }
.ey-dekont-alt { margin: 8px 0 0; font-size: 13px; color: var(--soluk); }

.ey-teslim-dugmeler { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; }

/* Güven satırı */
.ey-guven {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 12px 4px 0;
    font-size: 13px;
    color: var(--soluk);
}
.ey-guven svg { flex-shrink: 0; color: var(--yesil-koyu); width: 16px; height: 16px; }

@media (max-width: 560px) {
    .ey-ust { margin-bottom: 14px; }
    .ey-ust p { font-size: 14px; }
    h1 { font-size: 23px; }
    .ey-sayfa { padding: 16px 16px 18px; margin: 0 -4px; }
    .ey-alanlar { grid-template-columns: 1fr; gap: 10px; }
    #adim1 .ey-dugme { align-self: stretch; }
    .ey-adimlar { font-size: 13px; gap: 6px; }
    .ey-mm { flex-wrap: wrap; }
    .ey-birak { padding: 12px 14px; }
    /* dosya satırı: ad + durum üstte, banka/IBAN/tarih altta */
    .ey-liste li { grid-template-columns: 26px minmax(0, 1fr) auto; }
    .ey-tur { grid-row: 1 / span 2; align-self: start; }
    .ey-ayrinti { grid-column: 2 / -1; grid-row: 2; flex-wrap: wrap; gap: 0 10px; font-size: 13px; }
    .ey-durum { grid-column: 3; }
    .ey-teslim { margin: 14px -16px -18px; padding: 14px 10px 16px; }
    .ey-liste:empty + .ey-teslim { margin-top: -16px; }
    .ey-dekont { padding-left: 14px; padding-right: 14px; }
    .ey-delik { margin-left: -14px; margin-right: -14px; }
    .ey-dekont-bilgi { grid-template-columns: 1fr 1fr; justify-content: stretch; gap: 6px 12px; }
    .ey-dekont-dosyalar li { grid-template-columns: 18px minmax(0, 1fr) auto; }
    .ey-dk-tarih { grid-column: 2 / -1; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .ey-cubuk::after { width: 100%; opacity: .5; }
}

@media print {
    body { background: #fff; font-size: 12pt; }
    .ey-kap > *:not(main), main > :not(.ey-sayfa), .ey-sayfa > :not(#adim2),
    #adim2 > :not(#teslim), .ey-teslim-dugmeler { display: none !important; }
    .ey-sayfa { border: 0; box-shadow: none; padding: 0; }
    .ey-teslim { background: none; border: 0; margin: 0; padding: 0; }
    .ey-dekont-golge { filter: none; }
    .ey-dekont { animation: none; -webkit-mask: none; mask: none; border: 1px solid #999; }
}
