/* RESTOM_AY_V1 */
.ay { --ay-bg: var(--bg-main, #f4f7f5); --ay-card: var(--sidebar-bg, #fff); --ay-tx: var(--text-main, #14261d); --ay-mu: var(--text-muted, #6b7f74); --ay-ln: rgba(8, 50, 32, .1); margin-bottom: 18px; color: var(--ay-tx); }
body.dark-mode .ay { --ay-ln: rgba(255, 255, 255, .1); }
.ay * { box-sizing: border-box; }
.ay-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ay-head h3 { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.ay-head p { margin: 3px 0 0; font-size: .82rem; color: var(--ay-mu); max-width: 520px; }
.ay-pick { display: flex; align-items: center; gap: 6px; }
.ay-pick button, .ay-pick input { height: 40px; border: 1px solid var(--ay-ln); background: var(--ay-card); color: var(--ay-tx); border-radius: 11px; font: inherit; font-weight: 700; font-size: .9rem; }
.ay-pick button { width: 40px; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0; }
.ay-pick button:hover:not(:disabled) { border-color: #10b981; color: #047857; }
.ay-pick button:disabled { opacity: .4; cursor: default; }
.ay-pick input { padding: 0 10px; min-width: 150px; }
.ay-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ay-chips button { height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--ay-ln); background: var(--ay-card); color: var(--ay-tx); font: inherit; font-weight: 700; font-size: .8rem; cursor: pointer; }
.ay-chips button.on { background: #10b981; border-color: #10b981; color: #fff; }
.ay-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 12px; }
.ay-stat { background: var(--ay-card); border: 1px solid var(--ay-ln); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.ay-stat small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ay-mu); }
.ay-stat strong { display: block; margin: 6px 0 4px; font-size: 1.45rem; font-weight: 900; letter-spacing: -.03em; overflow-wrap: anywhere; }
.ay-stat.hl { background: linear-gradient(135deg, #10b981, #047857); border-color: transparent; color: #fff; }
.ay-stat.hl small, .ay-stat.hl .ay-sub { color: rgba(255, 255, 255, .85); }
.ay-sub { font-size: .76rem; color: var(--ay-mu); min-height: 1em; }
.ay-card { background: var(--ay-card); border: 1px solid var(--ay-ln); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; min-width: 0; }
.ay-card h4 { margin: 0 0 10px; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; color: var(--ay-mu); }
.ay-split { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--ay-ln); margin: 4px 0 10px; }
.ay-split i { display: block; height: 100%; }
.ay-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--ay-mu); }
.ay-leg span { display: inline-flex; align-items: center; gap: 6px; } .ay-leg b { width: 9px; height: 9px; border-radius: 50%; display: inline-block; } .ay-leg em { font-style: normal; font-weight: 800; color: var(--ay-tx); }
.ay-chart { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 6px; }
.ay-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.ay-col i { display: block; width: 100%; max-width: 22px; background: linear-gradient(180deg, #34d399, #059669); border-radius: 5px 5px 2px 2px; min-height: 0; transition: height .4s; }
.ay-col span { font-size: .62rem; color: var(--ay-mu); }
.ay-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ay-tw { max-height: 380px; overflow: auto; }
.ay table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ay th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ay-mu); padding: 8px 8px; border-bottom: 1px solid var(--ay-ln); position: sticky; top: 0; background: var(--ay-card); }
.ay td { padding: 8px 8px; border-bottom: 1px solid var(--ay-ln); }
.ay .r { text-align: right; font-variant-numeric: tabular-nums; }
.ay-empty, .ay-load { padding: 36px 16px; text-align: center; color: var(--ay-mu); display: flex; flex-direction: column; gap: 4px; background: var(--ay-card); border: 1px solid var(--ay-ln); border-radius: 16px; }
.ay-empty b { color: var(--ay-tx); } .ay-empty.err b { color: #ef4444; }
.ay-note { font-size: .76rem; color: var(--ay-mu); margin: 4px 2px 0; }
@media (max-width: 900px) { .ay-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ay-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ay-pick { width: 100%; } .ay-pick input { flex: 1; } .ay-stat strong { font-size: 1.15rem; } .ay-head h3 { font-size: 1.15rem; } .ay-chart { height: 120px; } .ay-col span { font-size: .55rem; } }
@media (max-width: 560px) { .ay-col:nth-child(even) span { visibility: hidden; } }

/* Ay Se\u00e7 dugmesi (panonun kendi dugme satirinda) ve pencere */
.ay-pillbtn { white-space: nowrap; }
.ay-modal { position: fixed; inset: 0; z-index: 4200; background: rgba(8, 20, 14, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ay-sheet { position: relative; width: min(1040px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg-main, #f4f7f5); border-radius: 22px; padding: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.ay-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .08); color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 2; }
.ay-sheet .ay-head { padding-right: 46px; }
@media (max-width: 640px) { .ay-modal { padding: 0; align-items: flex-end; } .ay-sheet { width: 100%; max-height: 94vh; border-radius: 22px 22px 0 0; padding: 14px; } }

.ay-prev { border-color: rgba(245, 158, 11, .5); }
.ay-prevn { margin: 0 0 10px; font-size: .84rem; color: var(--ay-mu); line-height: 1.5; }
.ay-prevn b { color: var(--ay-tx); }

.ay-stat.disc strong { color: #b45309; }

.ay-kes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ay-kes > div { background: var(--bg-main, #f8fafc); border-radius: 14px; padding: 12px 14px; }
.ay-kes small { display: block; font-size: .74rem; font-weight: 700; color: var(--text-muted, #64748b); }
.ay-kes strong { display: block; font-size: 1.15rem; margin: 2px 0; }
.ay-kes em { display: block; font-style: normal; font-size: .72rem; color: var(--text-muted, #64748b); }
