/* ========================================
   STAJ DEFTERİ - Şablon Stilleri (FR.575)
   A4 PDF çıktı için birebir şablon kopyası
   ======================================== */

/* ---- Template Container ---- */
.staj-template {
  width: 210mm;
  height: 296mm; /* html2pdf'in taşma yapıp 2. boş sayfayı oluşturmasını engellemek için A4 boyundan 1mm kısa */
  background: white;
  color: black;
  font-family: 'Times New Roman', serif;
  font-size: 12pt;
  padding: 10mm;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.staj-template:not(:last-child) {
  page-break-after: always;
}

.staj-template * {
  color: black;
}

/* ---- Main Template Table ---- */
.template-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid black;
  table-layout: fixed;
}

.template-table td {
  border: 1px solid black;
  padding: 4px 8px;
  vertical-align: top;
}

/* ---- Header Styles ---- */
td.header-logo {
  width: 15%;
  text-align: center;
  vertical-align: middle;
}

.uni-logo {
  max-width: 90%;
  max-height: 80px;
  display: inline-block;
  vertical-align: middle;
}



td.header-title {
  width: 42%;
  text-align: center;
  vertical-align: middle;
  font-size: 16pt;
  font-weight: bold;
  letter-spacing: 1px;
}

td.header-label {
  width: 22%;
  font-size: 9pt;
  padding: 2px 6px;
  vertical-align: middle;
}

td.header-value {
  width: 18%;
  font-size: 9pt;
  font-weight: bold;
  padding: 2px 6px;
  vertical-align: middle;
}

/* ---- Yapılan İş Header ---- */
.yapilan-is-header {
  padding: 6px 10px;
  font-size: 11pt;
  background: #f9f9f9;
  min-height: 28px;
}

/* ---- Yapılan İş Content ---- */
.yapilan-is-content {
  height: 155mm; /* Fixed maximum height */
  vertical-align: top;
  padding: 10px 12px;
}

.yapilan-is-text {
  font-size: 11pt;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ---- Template Images ---- */
.template-images {
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #ccc;
  width: 100%;
}

.template-img {
  display: inline-block;
  width: 50mm;
  height: 50mm;
  margin: 0 10px;
  border: 1px solid #000;
  border-radius: 4px;
}

/* ---- Signatures ---- */
.signature-left,
.signature-right {
  width: 50%;
  padding: 10px 12px;
  min-height: 70px;
  vertical-align: top;
  font-size: 10pt;
  line-height: 1.8;
}

.signature-left {
  border-right: 1px solid black;
}

/* ---- Footer ---- */
.template-footer {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  border: 1px solid black;
}

.template-footer td {
  border: 1px solid black;
  padding: 4px 8px;
  text-align: center;
  font-size: 8pt;
  color: #444;
  width: 33.33%;
}

.template-footer tr:first-child td {
  font-weight: normal;
  color: #666;
}

.template-footer tr:last-child td {
  font-weight: normal;
  color: #444;
}

/* ---- Preview Scaling ---- */
.template-preview {
  transform-origin: top left;
  transform: scale(0.52);
  width: 210mm;
  pointer-events: none;
}

.template-preview-wrapper {
  width: calc(210mm * 0.52);
  height: calc(297mm * 0.52);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  background: white;
}
/* ---- Cover Page ---- */
.cover-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 20mm;
}
.cover-content h2 { font-size: 22pt; margin: 0; font-weight: bold; }
.cover-content h3 { font-size: 14pt; margin: 10px 0 30px 0; font-weight: normal; }
.cover-content h1 { font-size: 28pt; margin: 0 0 20px 0; font-weight: bold; }
.student-info-table {
  width: 80%;
  margin-top: 40px;
  border: none;
  font-size: 14pt;
}
.student-info-table td {
  padding: 8px;
  vertical-align: middle;
}
.staj-checkbox {
  line-height: 2;
}
.staj-checkbox .box {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 1px solid black;
  margin-right: 5px;
  text-align: center;
  line-height: 15px;
  font-size: 12px;
}

/* ---- Summary Page ---- */
.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.summary-header .left-section {
  text-align: center;
  flex-grow: 1;
}
.summary-header .left-section h2 {
  font-size: 16pt; margin: 0;
}
.summary-header .left-section h1 {
  font-size: 24pt; margin: 10px 0;
}
.photo-box {
  width: 40mm;
  height: 50mm;
  border: 1px solid black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12pt;
}
.student-info-table-2 {
  width: 100%;
  margin-top: 15px;
  font-size: 12pt;
  font-weight: bold;
}
.student-info-table-2 td {
  padding: 4px;
}
.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  border: 2px solid black;
  font-size: 10pt;
  text-align: center;
}
.summary-table th, .summary-table td {
  border: 1px solid black;
  padding: 6px;
  font-weight: bold;
}
.summary-table tbody td {
  font-weight: normal;
  height: 25px;
}

/* ---- Evaluation Page ---- */
.evaluation-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: -2px; 
  border: 2px solid black;
  border-top: none;
}
.evaluation-table td {
  border: 1px solid black;
  padding: 8px;
  font-size: 11pt;
}
