/* ========== Sub Page CSS ========== */
.re-txt-box { padding: 30px 20px; background: #E9F6FF; border: 1px solid #D9EDFB; font-size: 18px; color: #252525; }
.re-txt-box2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 8px; }

/* --- re-table (ul/li grid 테이블) { --- */
.re-table { width: 100%; border-top: 2px solid #252525; }
.re-table-body { width: 100%; }
.re-table-tr { display: grid; grid-template-columns: 1fr 1fr; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid #CDCDCD; }
.re-table-tr .re-table-tr-item { display: grid; grid-template-columns: 120px 1fr; }
.re-table-tr .re-table-tr-item.col-2 { grid-column: span 2; }
.re-table-tr .re-table-tr-item.full { grid-column: 1 / -1; }
.re-table-tr .re-table-tr-item + li { border-left: 1px solid #CDCDCD; }
.re-table-th { background: #f8f8f8; text-align: center; padding: 10px 12px; border-right: 1px solid #CDCDCD; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 0.9rem; color: #333; }
.re-table-th * { word-break: break-all; }
.re-table-td { padding: 8px 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.re-table-td > input, .re-table-td > select { flex: 1 1 0; min-width: 0; width: auto; }
.re-table-td > span[aria-hidden="true"] { flex: 0 0 auto; }
/* --- } re-table (ul/li grid 테이블) --- */

/* --- 모달 { --- */
.re-modal { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 10px; opacity: 0;transform: translateY(16px);transition: opacity 0.25s ease, transform 0.25s ease;pointer-events: none; }
.re-modal.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.re-modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 0.25s ease; }
.re-modal.is-open .re-modal-bg { opacity: 1; }
.re-modal-dialog { position: relative; z-index: 1; width: 100%; max-width: 700px; max-height: calc(100vh - 40px); }
.re-modal-content { display: flex; flex-direction: column; width: 100%; height: 100%; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); }
.re-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 16px; border-bottom: 1px solid #CDCDCD; }
.re-modal-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.35; }
.re-modal-close { position: relative; display: flex; align-items: center; justify-content: center; width: 36px; aspect-ratio: 1/1; border: 0; background: transparent; font-size: 32px; transition: all .3s; }
.re-modal-close * { position: relative; z-index: 2; }
.re-modal-close::before { content: ''; position: absolute; z-index: 1; width: 80%; height: 80%; background: #EBF1FB; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); transition: .3s; }
.re-modal-close:hover { rotate: 90deg; color: var(--re-main-color); }
.re-modal-close:hover::before { transform: translate(-50%, -50%) scale(1); }
.re-modal-body { flex: 1; padding: 16px; overflow-y: auto; }
.re-modal-footer { padding: 10px 16px; border-top: 1px solid #CDCDCD; }
body.re-modal-open { overflow: hidden; }
/* --- } 모달 --- */

/* --- 시그니처 패드 - 서명 { --- */ 
.re-signature-pad { position: relative; display: flex; align-items: stretch; gap: 20px; width: 100%; aspect-ratio: 7/3; background-color: #fff; }
.re-signature-pad-canvas-wrap { width: 100%; height: 100%; position: relative; border: 1px solid #C8C8C8; }
.re-signature-pad-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.re-signature-pad-actions { display: flex; align-items: stretch; justify-content: space-between; flex-wrap: wrap; width: 100%; gap: 10px 20px; }
.re-signature-pad-actions .re-signature-btn { width: 110px; }
.re-signature-pad-actions .re-actions-left { display: flex; align-items: stretch; justify-content: flex-start; gap: 10px; }
/* --- } 시그니처 패드 - 서명 --- */ 

/* ====================  반응형 ==================== */
@media screen and (max-width:1440px) {
}
@media screen and (max-width:1024px) {
  .re-txt-box { padding: 20px 12px; font-size: 16px; }
  .re-table-tr { display: flex; flex-direction: column; }
  .re-table-tr:has(> li[aria-hidden="true"]) > li:not([aria-hidden]) { grid-column: auto; }
  .re-table-tr .re-table-tr-item { display: flex; }
  .re-table-tr .re-table-tr-item:first-child { border-bottom: 1px solid #CDCDCD; }
  .re-table-tr .re-table-tr-item + li { border-left: none; }
  .re-table-tr .re-table-th { flex: 0 0 120px; }
  .re-table-tr .re-table-td { flex: 1 1 0; min-width: 0; }
}
@media screen and (max-width:768px) {
  .re-txt-box { padding: 16px 12px; font-size: 14px; }
  .re-table-tr .re-table-th { flex: 0 0 100px; padding: 6px; }
  .re-table-tr .re-table-td { padding: 6px; }
}
@media screen and (max-width:425px) {
  .re-modal-header { padding: 8px 10px; }
  .re-modal-title { font-size: 18px; }
  .re-modal-body { padding: 8px 10px; }
  .re-modal-footer { padding: 8px 10px; }
  .re-modal-close { width: 24px; aspect-ratio: 1/1; font-size: 24px; }
  .re-table-tr .re-table-th { flex: 0 0 70px; padding: 6px; }
  .re-signature-pad-actions { gap: 5px; }
  .re-signature-pad-actions .re-actions-left, .re-signature-pad-actions .re-actions-right { width: 100%; gap: 5px; }
  .re-signature-pad-actions .re-signature-btn { flex: 1; width: 100%; }
}
