/* Yönetim paneli */
.adm-main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
.adm-denied { text-align: center; padding: 80px 16px; }
.adm-tabs { margin-bottom: 18px; flex-wrap: wrap; }
.adm .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: 0.82rem; }
.stat.warn b { color: var(--accent); }
.days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 150px; }
.day { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; height: 100%; position: relative; }
.day .bars { display: flex; gap: 2px; align-items: flex-end; height: 120px; width: 100%; justify-content: center; }
.day .bar { width: 28%; border-radius: 3px 3px 0 0; min-height: 2px; display: block; }
.day .bar.u { background: var(--p1); } .day .bar.i { background: var(--p2); } .day .bar.a { background: var(--accent); }
.day small { color: var(--muted); font-size: 0.65rem; }
.day:hover .tip { display: block; }
.day .tip { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #000; border: 1px solid var(--line); padding: 6px 8px; border-radius: 8px; font-size: 0.75rem; white-space: nowrap; z-index: 2; }
.legend { display: flex; gap: 14px; font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.input { background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 9px 12px; font: inherit; min-width: 220px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.table td.user { white-space: normal; min-width: 200px; }
.table td.user small { display: block; color: var(--muted); }
.badge-s { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; margin-right: 4px; }
.badge-s.ok { background: rgba(34,197,94,0.15); color: #86efac; }
.badge-s.warn { background: rgba(245,158,11,0.15); color: #fcd34d; }
.badge-s.bad { background: rgba(239,68,68,0.15); color: #fca5a5; }
.badge-s.adm { background: rgba(124,92,255,0.2); color: #c4b5fd; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn.small { padding: 5px 10px; font-size: 0.78rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } .days { grid-template-columns: repeat(7, 1fr); } .day:nth-child(-n+7) { display: none; } }
.fields label, .upload-row { display: block; margin-bottom: 12px; font-size: 0.85rem; color: #cdd3e3; }
.fields label span.l, .upload-row span.l { display: block; margin-bottom: 4px; font-weight: 600; }
.fields label small, .upload-row small { display: block; color: var(--muted); margin-top: 3px; }
.fields input, .fields textarea { width: 100%; box-sizing: border-box; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 9px 12px; font: inherit; }
.fields textarea { min-height: 110px; resize: vertical; }
.fields .ovr { color: var(--p2); font-size: 0.7rem; margin-left: 6px; cursor: pointer; text-decoration: underline; font-weight: 400; }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.preview { border-radius: 12px; aspect-ratio: 16/9; min-height: 240px; overflow: hidden; }
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.job { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 0.8rem; }
.job .thumb { aspect-ratio: 1; background: #000; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.job .thumb img { width: 100%; height: 100%; object-fit: cover; }
.job .meta { padding: 8px 10px; }
.job .meta div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-credit { display: inline-flex; gap: 4px; align-items: center; }
.inline-credit input { width: 60px; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 4px 6px; font: inherit; }
