*{box-sizing:border-box;font-family:"Prompt",sans-serif}


body{background:#f8fafc;margin:0}

.container{
  max-width:1200px;
  margin:auto;
  padding:24px
}

.page-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px
}

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:16px;
  margin-bottom:30px
}

.card{
  background:#fff;
  padding:20px;
  border-radius:14px;
  box-shadow:0 8px 20px rgba(0,0,0,.05)
}

.card h3{
  margin:0;
  font-size:14px;
  color:#64748b
}

.card .num{
  font-size:30px;
  font-weight:600;
  margin-top:6px
}

.card.highlight{
  background:#ecfeff
}

.box{
  background:#fff;
  padding:20px;
  border-radius:14px;
  box-shadow:0 8px 20px rgba(0,0,0,.05)
}

table{
  width:100%;
  border-collapse:collapse;
  font-size:14px
}

th,td{
  padding:12px;
  border-bottom:1px solid #e5e7eb
}

th{
  background:#f9fafb
}

.empty{
  text-align:center;
  color:#6b7280
}

.link{
  color:#2563eb;
  text-decoration:none;
  font-weight:500
}


.row{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  margin-bottom:18px
}

.field{
  flex:1;
  min-width:260px
}

label{
  font-weight:500;
  font-size:14px;
  margin-bottom:6px;
  display:block
}

input,select,textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid #d1d5db;
  border-radius:8px;
  font-size:14px
}

textarea{min-height:120px}

button{
  background:#2563eb;
  color:#fff;
  border:none;
  padding:14px 40px;
  border-radius:999px;
  font-size:16px;
  cursor:pointer;
  margin:40px auto 0;
  display:block
}

.signature-row{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  margin-top:20px
}

.signature-box{
  border:1px solid #d1d5db;
  padding:18px;
  border-radius:12px;
  background:#f9fafb
}

@media(max-width:900px){
  .signature-row{grid-template-columns:1fr}
}
/* ===== Modal ===== */
.modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
}

.modal-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
}

.modal-box{
  position:relative;
  width:90%;
  max-width:1000px;
  height:90%;
  margin:3% auto;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 20px 40px rgba(0,0,0,.25);
}

.modal-box iframe{
  width:100%;
  height:100%;
}

.modal-close{
  position:absolute;
  top:12px;
  right:14px;

  background:transparent;   /* ❌ เอาพื้นหลังออก */
  border:none;              /* ❌ เอาขอบออก */

  color:#374151;            /* สี X */
  font-size:22px;
  font-weight:600;

  cursor:pointer;
  z-index:20;
  line-height:1;
  padding:4px;
}

.modal-close:hover{
  color:#ef4444;            /* hover เป็นสีแดง */
}