﻿.pdf-wrapper-centered {
    display: flex;
    flex-direction: column;
    align-items: center;         /* căn giữa ngang */
    justify-content: start;      /* có thể dùng center nếu muốn cả dọc */
    padding: 20px;
    gap: 40px;
}

.pdf-container {
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
    border-radius: 6px;
    background: white;
}

.pdf-canvas {
            display: block;
            margin-bottom: 20px;
            border: 1px solid #ccc;
        }

        .sign-button {
            position: absolute;
            background-color: #007bff;
            color: white;
            border: none;
            padding: 6px 10px;
            border-radius: 4px;
            font-size: 14px;
            cursor: pointer;
        }
         .pdf-page {
            margin-bottom: 20px;
            border: 1px solid #ccc;
        }

         .fixed-download-btn {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background-color: #28a745;
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fixed-download-btn:hover {
    background-color: #218838;
}
         .download-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 16px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

   .fixed-download-btn-left {
    position: fixed;
    top: 50%;
    left: 10px;                     /* trái thay vì phải */
    transform: translateY(-50%);    /* căn giữa theo chiều dọc */
    background-color: #28a745;
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
 
  .modal
 {
    z-index:200000 !important;
  }
  .modal-dialog {
  display: flex;
  align-items: center;
  min-height: 100vh; /* đảm bảo căn giữa */
}
  .modal-content {
  margin: auto;
}