/* ===== Admin / A4 PDF sheet — balanced gutters + responsive ===== */
.admin-body{
  --admin-gutter: clamp(14px, 3.5vw, 28px);
  --admin-max: 820px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,0,84,.08), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(21,20,26,.05), transparent 36%),
    #eceaf0;
  min-height:100vh;
  overflow-x:hidden;
}

/* Ortak genişlik: header + form aynı hizada */
.admin-body .wrap.admin-header-wrap,
.admin-body .wrap.admin-wrap{
  width:100%;
  max-width:var(--admin-max);
  margin-inline:auto;
  padding-inline:var(--admin-gutter);
  box-sizing:border-box;
}

.admin-header-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px 16px;
  flex-wrap:wrap;
  min-height:64px;
}
.admin-header-meta{
  display:flex;
  align-items:center;
  gap:10px 14px;
  flex-wrap:wrap;
  margin-left:auto;
}
.admin-badge{
  display:inline-flex;align-items:center;
  padding:6px 11px;border-radius:999px;
  background:var(--accent-soft);color:var(--accent-strong);
  font-family:"Sora";font-size:12px;font-weight:700;
}

.admin-main{
  padding:clamp(16px, 2.5vw, 32px) 0 clamp(88px, 12vw, 120px);
}
.admin-intro{margin-bottom:14px}
.admin-intro h1{
  font-size:clamp(20px, 4.2vw, 26px);
  margin-bottom:6px;
  line-height:1.2;
}
.admin-intro p{
  color:var(--muted);
  font-size:clamp(13.5px, 2.8vw, 14.5px);
  line-height:1.45;
  max-width:56ch;
}

.pdf-sheet{
  width:100%;
  margin:0;
  background:#fff;
  border:1px solid #d7d2db;
  border-radius:12px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 18px 48px rgba(21,20,26,.10),
    0 2px 8px rgba(21,20,26,.04);
  overflow:hidden;
}

.pdf-pad{
  padding-inline:clamp(14px, 3.2vw, 26px);
}

.pdf-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px 18px;
  flex-wrap:wrap;
  padding:clamp(16px, 2.8vw, 24px) clamp(14px, 3.2vw, 26px) clamp(14px, 2.4vw, 18px);
  background:linear-gradient(180deg,#fff 0%,#faf8fa 100%);
  border-bottom:3px solid var(--ink);
}
.pdf-brand{
  display:flex;
  gap:11px;
  align-items:center;
  min-width:0;
  flex:1 1 220px;
}
.pdf-brand .logo-badge{flex-shrink:0}
.pdf-brand strong{
  display:block;
  font-family:"Sora";
  font-size:clamp(15px, 3.2vw, 17px);
}
.pdf-brand span{
  display:block;
  font-size:clamp(12px, 2.6vw, 13px);
  color:var(--muted);
  line-height:1.35;
}
.pdf-meta{
  display:flex;
  gap:14px 18px;
  flex-wrap:wrap;
  flex:0 1 auto;
}
.pdf-meta div{text-align:right}
.pdf-meta span{
  display:block;
  font-size:10.5px;
  text-transform:uppercase;
  letter-spacing:.6px;
  color:var(--muted);
}
.pdf-meta b{
  font-family:"Sora";
  font-size:13px;
  color:var(--ink);
  word-break:break-word;
}

.pdf-sec{
  padding:clamp(16px, 2.8vw, 22px) clamp(14px, 3.2vw, 26px);
  border-bottom:1px dashed #ddd8e2;
}
.pdf-sec:last-of-type{border-bottom:none}
.pdf-sec h2{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:clamp(14px, 3vw, 15px);
  margin-bottom:14px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}
.pdf-sec h2 span{
  display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:28px;border-radius:8px;flex-shrink:0;
  background:var(--accent);color:#fff;font-size:12px;font-weight:700;
}

.pdf-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px 14px;
}
.pdf-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.pdf-field > span{
  font-size:11px;
  font-weight:700;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.4px;
}
.pdf-span-2{grid-column:1 / -1}
.pdf-fieldset{border:none;padding:0;margin:0;min-width:0}
.pdf-fieldset legend{
  font-size:11px;font-weight:700;color:var(--muted);
  text-transform:uppercase;letter-spacing:.4px;margin-bottom:10px;padding:0;
}
#uzmanlikDigerWrap{margin-top:12px}
.pdf-consents{margin-top:16px;display:flex;flex-direction:column;gap:6px}

.pdf-sheet .inp{
  width:100%;
  max-width:100%;
  border-radius:10px;
  border-color:#e2dee8;
  background:#fcfcfd;
  font-size:16px; /* iOS zoom önleme */
}
.pdf-sheet .inp:focus{background:#fff}
.pdf-sheet textarea.inp{min-height:84px;resize:vertical}

.pdf-sheet .chips{
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}
.pdf-sheet .chip{
  min-width:0;
  font-size:12.5px;
  padding:11px 10px;
}
.pdf-sheet .up-grid{
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.pdf-sheet .upload{
  position:relative;
  overflow:hidden;
  min-height:132px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:14px 10px;
  width:100%;
  box-sizing:border-box;
}
.pdf-sheet .upload .preview{
  position:absolute;inset:0;background:#111 center/cover no-repeat;
}
.pdf-sheet .upload .preview.is-pdf{
  background:#1b1520;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:700;font-size:13px;
}
.pdf-sheet .upload.has-file{
  border-style:solid;border-color:var(--ok);color:#fff;
}
.pdf-sheet .upload.has-file .ic,
.pdf-sheet .upload.has-file .t,
.pdf-sheet .upload.has-file .s,
.pdf-sheet .upload.has-file .file-name{
  position:relative;z-index:1;
  text-shadow:0 1px 8px rgba(0,0,0,.45);
}
.pdf-sheet .upload.has-file .ic{background:rgba(255,255,255,.18);color:#fff}
.pdf-sheet .upload.has-file .s{color:rgba(255,255,255,.85)}
.pdf-sheet .upload.has-file .file-name{color:#fff;max-width:100%;padding-inline:6px}

.pdf-foot{
  position:sticky;bottom:0;z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px 12px;
  flex-wrap:wrap;
  padding:12px clamp(14px, 3.2vw, 26px);
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(10px);
  border-top:1px solid var(--line);
  box-shadow:0 -8px 24px rgba(21,20,26,.06);
}
.pdf-foot p{
  font-size:12px;
  color:var(--muted);
  margin:0;
  flex:1 1 160px;
  line-height:1.4;
  min-width:0;
}
.pdf-foot .btn{
  flex:0 0 auto;
  min-width:132px;
}

.toast{
  position:fixed;
  left:50%;
  bottom:max(16px, env(safe-area-inset-bottom, 0px));
  transform:translateX(-50%) translateY(12px);
  z-index:100;
  width:min(calc(100vw - 28px), 360px);
  padding:13px 16px;border-radius:14px;
  background:var(--ink);color:#fff;font-weight:600;font-size:14px;
  box-shadow:0 16px 40px rgba(0,0,0,.28);
  opacity:0;pointer-events:none;
  transition:opacity .22s ease, transform .22s ease;
  text-align:center;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);pointer-events:auto}
.toast.ok{background:#143d28}
.toast.warn{background:#5a3a08}

/* Tablet */
@media(max-width:780px){
  .admin-body{--admin-gutter:16px}
  .pdf-meta div{text-align:left}
  .admin-header-meta{margin-left:0;width:100%}
}

/* Phone */
@media(max-width:640px){
  .admin-body{--admin-gutter:12px}
  .admin-header-wrap{min-height:56px;padding-block:8px}
  .admin-main{padding-top:12px;padding-bottom:96px}
  .admin-intro{margin-bottom:12px}
  .pdf-sheet{border-radius:10px}
  .pdf-grid{grid-template-columns:1fr;gap:12px}
  .pdf-span-2{grid-column:auto}
  .pdf-sheet .chips{grid-template-columns:1fr}
  .pdf-sheet .up-grid{grid-template-columns:1fr}
  .pdf-foot{
    flex-direction:column;
    align-items:stretch;
    padding:12px;
  }
  .pdf-foot p{flex-basis:auto}
  .pdf-foot .btn{width:100%;min-width:0}
  .pdf-brand{flex:1 1 100%}
}

@media(max-width:380px){
  .admin-body{--admin-gutter:10px}
  .logo-word{font-size:15px}
  .admin-badge{display:none}
  .pdf-sheet .chip{font-size:12px}
}
