/* หน้ารายงาน / พิมพ์ */
.report-page{
  margin:0;
  background:#E8E4D8;
  color:#1a1a1a;
  font-family:'Sarabun',sans-serif;
  line-height:1.55;
  min-height:100vh;
}
.report-toolbar{
  position:sticky;top:0;z-index:10;
  display:flex;gap:10px;align-items:center;justify-content:center;
  padding:14px 16px;
  background:rgba(246,242,233,.95);
  border-bottom:1px solid #DDD5C2;
  backdrop-filter:blur(6px);
}
.report-sheet{
  max-width:860px;
  margin:20px auto 40px;
  background:#fff;
  padding:36px 40px 28px;
  box-shadow:0 2px 16px rgba(23,48,73,.08);
  border:1px solid #DDD5C2;
  display:flex;
  flex-direction:column;
  min-height:calc(100vh - 100px);
  box-sizing:border-box;
  font-size:16px;
}

.report-header{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-start;
  padding-bottom:16px;
  border-bottom:2px solid #173049;
  flex-shrink:0;
  font-size:14px;
}
.report-brand{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.report-logo{
  width:64px;
  height:64px;
  object-fit:contain;
  flex-shrink:0;
}
.report-logo-sm{
  width:40px;
  height:40px;
}
.report-org{
  font-size:14px;
  color:#173049;
  line-height:1.45;
}
.report-org strong{font-size:14px;}
.report-meta{
  text-align:right;
  font-size:14px;
  color:#444;
  min-width:180px;
}
.report-meta-label{
  font-size:14px;
  letter-spacing:.6px;
  text-transform:uppercase;
  color:#68727F;
  margin-bottom:2px;
}

.report-title-block{
  text-align:center;
  margin:22px 0 22px;
  flex-shrink:0;
}
.report-title-block h1{
  margin:0 0 6px;
  font-size:16px;
  color:#173049;
  font-weight:700;
}
.report-title-block p{
  margin:0;
  font-size:16px;
  color:#68727F;
}

.report-empty{
  text-align:center;
  color:#68727F;
  padding:30px 0;
  flex:1 0 auto;
  font-size:16px;
}

.report-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1 1 auto;
  font-size:16px;
}

.report-card{
  display:block;
  padding:12px 0;
  background:transparent;
  border:none;
  border-bottom:1px solid #E6E0D2;
  border-radius:0;
  break-inside:avoid;
  page-break-inside:avoid;
  font-size:16px;
}
.report-card:last-child{border-bottom:none;}
.report-card-main{min-width:0;}
.report-card-title{
  margin:0 0 6px;
  font-size:16px;font-weight:600;color:#20293A;
  word-break:break-word;
}
.report-card-meta{
  display:flex;flex-wrap:wrap;gap:10px 14px;
  font-size:16px;color:#68727F;align-items:center;
}
.report-cat{
  color:#204364;
  font-size:16px;
}
.report-card-meta .mono{font-family:'JetBrains Mono',monospace;font-size:16px;}
.report-card-url{
  margin-top:7px;font-size:16px;color:#204364;
  font-family:'JetBrains Mono',monospace;word-break:break-all;
}

.report-footer{
  margin-top:auto;
  padding-top:14px;
  border-top:2px solid #173049;
  font-size:14px;
  color:#444;
  flex-shrink:0;
}
.report-footer-brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.report-site-url{
  margin-top:2px;
  color:#204364;
  font-family:'JetBrains Mono',monospace;
  font-size:14px;
}
.report-note{
  margin-top:8px;
  color:#68727F;
  font-size:14px;
}

@media (max-width:640px){
  .report-sheet{
    margin:0;
    border:none;
    box-shadow:none;
    padding:20px 16px;
    min-height:calc(100vh - 70px);
  }
  .report-header{flex-direction:column;}
  .report-meta{text-align:left;}
}

@media print{
  .no-print,.report-toolbar{display:none !important;}
  html,body.report-page{
    background:#fff;
    height:100%;
    min-height:100%;
  }
  .report-sheet{
    max-width:none;
    margin:0;
    padding:0;
    border:none;
    box-shadow:none;
    min-height:100vh;
    display:flex;
    flex-direction:column;
  }
  .report-list,.report-empty{flex:1 1 auto;}
  .report-footer{
    margin-top:auto;
    page-break-inside:avoid;
  }
  .report-card{
    box-shadow:none;
    page-break-inside:avoid;
  }
  a{color:inherit;text-decoration:none;}

  @page{
    margin: 10.5mm 7mm 13.5mm 7mm;
    size: A4;
  }
}
