@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  width: 100%;
  height: 100vh !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  overflow-x: hidden;
}

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

.navBarPDF{
    background: #323639;
    width: 100%;
    height: 50px;
    padding: 0 6px 0 6px;
    
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

#previewContent,
#previewContentCSHP{
    height: 74vh;
}

.sigBtnForAutoSign{
    background: none;
    color: lightgray;
    border-radius: 50%;
    border: none;
    margin: 2px;
    padding: 10px;
    transition: transform 0.1s ease-in;
}

.sigBtnForAutoSign:hover{
    color: white;
    background: rgba(255,255,255,0.1);
    transform: scale(1.2);
}

.sigBtnForAutoSign:active{
    transform: scale(1);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header-container {
    height: auto; /* or change as needed */
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
    margin: 0 6px 0 6px;
}

.header_image {
    width: 100%;
    height: auto;     /* Automatically maintains aspect ratio */
    max-width: 8vw;  /* Prevents growing too large */
}

.textForHeader{
    font-size: max(1vw, 12px);
    
     /* Text alignment */
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;

    /* Prevent text from overflowing */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Adjust this for max lines before truncation */
    -webkit-box-orient: vertical;
}

.header-image {
    width: 100%;
    height: auto;
    object-fit: cover;   /* <-- This makes it behave like a background-size: cover */
    object-position: center; /* Optional: centers the image crop */
    display: block;
}


.header {
  width: 100%;
  height: 20vh;
  padding: 5px;
  color: white;
  display: flex;
  gap: 2em;
  flex-direction: row;
  text-align: center;
  justify-content: center;
  align-items: center;
  background: rgba(0, 89, 179, 1);
}

.headerContainer{
     height: 4% !important; 
     flex-direction: row; 
     justify-content: center; 
     padding: 6px 12vw 6px 12vw;
}

.header .imgWrap1,
.header .imgWrap2 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header .textSpan {
  color: white;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.textSpan #span1 {
  font-size: 18px;
  font-weight: normal;
}

.textSpan #span2 {
  font-size: 20px;
  font-weight: normal;
}

.textSpan #span3 {
  font-size: 20px;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}
.textSpan #span4 {
  font-size: 18px;
  font-weight: normal;
}

.textSpan #span5 {
  font-size: 14px;
  font-weight: normal;
}

.h1wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: rgb(34, 87, 116);
}

.h1wrap .mainh1 {
    text-align: center;
    font-size: 23px;
}

.curved-shape {
  position: absolute;
  right: 0.2;
  top: -5px;
  height: 600px;
  width: 850px;
  transform: rotate(10deg) skewY(20deg);
  transform-origin: bottom right;
}

/*.centerInTheFunctionTab{*/
/*    position: absolute;*/
/*    top: 50%;*/
/*    left: 50%;*/
/*    transform: translate(-50%, -50%);*/
/*}*/

.contentWrap {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: space-evenly;
  align-items: center;
  background: gray;
}

.textBox{
    color: black;
    border: 1px solid lightGray;
    border-radius: 4px;
    padding: 3px;
    font-size: max(1vw, 10px);
}

.footer {
    width: 100%;
    padding-left: 2vw;
}

.footer .span1{
    color: black;
    font-size: 12px;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    transition: opacity 0.75s, visibility 0.75s;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader::after {
    content: "";
    width: 75px;
    height: 75px;
    border: 15px solid #dddddd;
    border-top-color: rgba(0, 89, 179, 1);
    border-radius: 50%;
    animation: loading 0.75s ease infinite;
}

@keyframes loading {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

.os-theme-dark .os-scrollbar {
    background: transparent !important;
    width: 14px !important;
}

.os-theme-dark .os-scrollbar-handle {
    background: #475877 !important;
    border-radius: 6px !important;
}

/* Fixed height for vertical scrollbar dragger */
#scrollBarAttendee .os-scrollbar-vertical .os-scrollbar-handle,
#scrollBarCSHP     .os-scrollbar-vertical .os-scrollbar-handle,
#comprehensiveCSHP .os-scrollbar-vertical .os-scrollbar-handle{
    height: 70px !important; /* Set to your desired fixed height */
    min-height: 70px !important;
    max-height: 70px !important;
}

.contentWrapInner {
    background: #ecf0f5; 
    width: 100%; 
    /*height: 100%;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container{
    position: relative;
    width: 99%;
    height: 85vh;
    background: white;
    margin: 2px;
    display: flex;
    align-items: center;
}

.centerWrap{
    justify-content: center;
}

.mimicHeaderTitle{
    width: 99%;
    height: 75%;
    color: white;
    background: #475877;
    margin:8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 4px black;
    letter-spacing: 3px;
    font-size: max(2vw, 16px);
    font-weight: bold;
}

.actionContainers{
    position: relative;
    width: 100%;
    height: 100%;
    /*border: 2px solid #475877;*/
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    visibility: hidden;
    max-width: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
}

.fixedButtons{
    position: fixed; 
    bottom: 0; 
    right: 9vw; 
    transform: translate(-70%, -70%); 
}

.directoryWrapper{
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
}
.directoryWrapper_alter{
    display: none;
}

.forTopBar{
    width: 100%;
}

.form_alter{
    max-width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 6px 12vw 6px 12vw;
}

/*dropdown*/
.dropdownButton{
    max-width: max(25vw, 300px);
    width: 100%;
    height: 10vh;
    margin: 6px;
    border: none;
    border-radius: 4px;
    transition: color, background 0.2s ease-out;
    
    background: #475877;
    color: white;
    
    font-weight: bold;
    font-size: max(1vw, 10px);
    cursor: pointer;
}

.dropdownButton:hover{
    color: #475877;
    background: white;
    border: 2px solid #475877;
}

.dropdown {
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-origin: top;
    
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* When visible */
.dropdown.show {
    max-height: 500px; /* Adjust if needed */
    opacity: 1;
    overflow: visible;
}

.create_form_alter{
    max-width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 6px 60px 6px 60px !important;
    margin: 0 5px 0 5px;
}
.create_form_alter2{
    max-width: 20%;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0 6px 0 6px !important;
    margin: 0 5px 0 5px;
}


.textContainer{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 8px 0 8px;
}

.textContainer label{
    font-size: max(1vw, 10px);
    color: black;
}

.textContainer input[type = "text"],
.modal-content input[type = "text"],
.textContainer input[type = "number"],
select{
    border: 1px solid gray;
    border-radius: 4px;
    padding: 3px;
    color: black;
    width: 100%;
    height: 30px;
    outline: none;
    font-size: max(0.8vw, 10px);
    background: #ECECEC;
}

.textContainer input[type = "text"]::placeholder,
.modal-content input[type = "text"]::placeholder,
.textContainer input[type = "number"]::placeholder{
    font-weight: bold;
    font-style: italic;
    text-align: center;
    opacity: 0.5;
    font-size: max(0.8vw, 10px);
}

.modal-content input[type = "text"]:focus,
.textContainer input[type = "text"]:focus{
    border: 2px solid #475877;
}

.boxLines{
    display: flex;
}

.boxLines input:nth-child(3){
    margin-right: 30px;
}

.staticValues{
    border: 1px solid gray !important;
    background: white !important;
}

.textWrapAlign{
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-weight: bold;
    font-size: max(1.2vw, 10px);
}

.actionWrap{
    width: 100%;
    height: 8vh;
    margin: 6px 0 6px 0;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    border: 1px solid #475877;
    border-radius: 4px;
}

.noBorder{
    border: none !important;
    padding: 0 6px 0 6px;
    justify-content: space-between !important;
}

.DOLEFormWrap{
    width: 100%;
    height: 100%;
    color: black;
    margin: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.DOLEFormInnerWrap, 
.originalSet, 
.safetySet, 
.firstAiderSet,
.equipmentSet,
.VIISet,
.XIVSet,
.additionalSafetySetContainer,
.additionalaiderSetContainer,
.additionalEquipmentSetContainer,
.additionalVIISetContainer,
.additionalXIVSetContainer,
.additionalSetContainer{
    display: flex;
    width: 100%;
    padding: 6px;
}

.DOLEFormInnerWrap .textContainer label , 
.originalSet .textContainer label,
.additionalSetContainer .textContainer label,
.firstAiderSet .textContainer label,
.equipmentSet .textContainer label,
.VIISet .textContainer label,
.XIVSet .textContainer label,
p,
.safetySet .textContainer label{
    font-size:max(0.8vw, 10px);
}

h4{
    color: black;
    font-size:max(1vw, 10px);
}

.doleCheckboxContainer{
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.doleCheckboxContainer label{
    text-align: center;
    font-size:max(0.8vw, 10px);
    color: black;
}

.textInside{
    width: 100%; 
}


input[type = 'checkbox']{
    width: 20px;
    height: 20px;
    accent-color: black;
}

textarea:not(.tableTextBox){
    width: 100%;
    height: 100px;
    resize: none;
    border-radius: 4px;
    border: 1px solid lightgray;
    outline: none;
    color: black;
    padding: 3px;
}

textarea:focus{
    border: 2px solid #475877;
}

.doleInput{
    width: 100%;
}

.blankInput{
    height: 2vh !important;
    border-bottom: 1px solid gray !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
}

.OHTextWrap{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: black;
    width: 20%;
    height: 100%;
    margin-right: 6px;
    font-size:max(0.8vw, 10px);
}

.fixedTab{
    position: sticky;
    height: 100vh;
}

.buttonWrapper{
    background: none;
    border: 2px solid #475877;
    height: 100%;
    font-size: max(1vw, 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: black;
    font-weight: bold;
    
    /*text alignment*/
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    
    transition: transform 0.07s ease-in;
}

.ActionUI{
    background: none;
    border: 2px solid #475877;
    width: 60%;
    height: 100%;
    font-size: max(1vw, 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px;
    color: black;
    font-weight: bold;
    
    /* Text alignment */
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;

    /* Prevent text from overflowing */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Adjust this for max lines before truncation */
    -webkit-box-orient: vertical;

    transition: transform 0.07s ease-in;
}

.headerForUpload{
    background: none;
    border: 2px solid #475877;
    width: 60%;
    height: 100%;
    font-size: max(1vw, 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #475877;
    color: white;
    font-weight: bold;
    border-radius: 4px;
}


.ActionUI{
    border-radius: 4px;
}

.directoryBtn{
    max-width: 20vw;
    min-width: 300px;
    height: 8vh;
    margin-bottom: 6px;
    font-size: max(0.8vw, 10px) !important;
}

.buttonWrapper{
    border: none;
    background: white;
    color: black;
    width: 19%;
    padding: 0;
    flex-direction: row;
}

.actionBtn{
    width: 100%;
    height: 100%;
    border: 1px solid gray;
    border-radius: 4px;
    color: black;
    font-size: max(0.9vw, 10px);
    transition: transform 0.07s ease-in;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dcdcdc;
    text-decoration: none;
    margin: 0 0 0 2px;
}

.ActionUI:hover{
    cursor: pointer;
    background: royalblue;
    opacity: 0.7;
    color: white;
}

.buttonWrapper .actionBtn:nth-child(1){
    color: royalblue;
}

.buttonWrapper .actionBtn:nth-child(2){
    color: red;
}

.buttonWrapper .actionBtn:nth-child(1):hover{
    cursor: pointer;
    background: royalblue;
    opacity: 0.7;
    color: white;
}

.buttonWrapper .actionBtn:nth-child(2):hover{
    cursor: pointer;
    background: red;
    opacity: 0.7;
    color: white;
}

.topContent{
    position: relative;
    background: green;
    color: white;
    font-size: max(0.8vw, 10px);     
    width: 7vw; 
    height: 4vh;
}

.topContent:hover{
    cursor: pointer;
    background: white;
    color: green;
    border: 1px solid green;
}

.hoverWrap{
    position: sticky; 
    top: 6px; 
    z-index: 9;
    justify-content: flex-end;
}

.hoverBtn{
    width: 8vh;
    height: 4vh;
    
    background: white;
    border: 1px solid gray;
    border-radius: 4px;
    color: gray;
    
    transition: All 0.1s ease-in;
}

.hoverBtn:hover{
    background: green;
    border: 1px solid green;
    border-radius: 2px;
    color: white;
}



.backContent:hover{
    cursor: pointer;
    background: blue;
    opacity: 0.7;
    color: white;
}

.footerBtnWrap{
    width: 20%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.footerBtnWrap .actionBtn{
    margin: 6px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 4px;
    width: 60%;
    max-height: 600px;
    background-color: white;
    position: relative;
}

.close {
    position: absolute;
    right: 3px;
    top: -2px;
    cursor: pointer;
    font-size: 40px;
    color: gray !important;
}

.drop-area {
    margin-top: 20px;
    width: 100%;
    height: 100px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.drop-area.dragging {
    background-color: #f0f0f0;
    border-color: #666;
}

.file-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    position: relative;
    font-size: 12px;
}

.file-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.file-item .remove-file {
    position: absolute;
    top: -5px;
    right: -5px;
    cursor: pointer;
    font-size: 16px;
    color: red;
    background: none;
    border: none;
}

.file-item div {
    font-size: 7px;
    margin-top: 3px;
    text-align: center;
    overflow: hidden;              /* Hide overflowed text */
    white-space: nowrap;          /* Prevent text wrapping */
    text-overflow: ellipsis;      /* Add ellipsis for overflowed text */
    max-width: 90px; 
    color: black !important;             /* Set a max width to control the truncation */
}
.invalid-input{
    border: 2px solid red !important;
}

.imgSig{
    position: absolute; 
    width: 100px; 
    height: 70px;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    display: none;
    pointer-events: none;
}

.sigInput{
    display: none; 
}

.sigBtn{
    position: absolute;
    top: 1px;
    right: 2%;
    font-size: 20px;
}

.flatpickr-input {
    font-size: 11px;
}

.flatpickr-input::placeholder {
    font-size: 12px;
    color: gray;
}

.sigTrigger{
    background: white;
    margin-right: 6px;
    width: 95.5%;
    height: 30px;
    opacity:0.5;
    color: white;
    margin-left: 0;
    font-weight: bold;
    font-style: italic;
    border: 1px solid grey;
    background: royalBlue;
}

.sigDelete{
    display: none;
    position: absolute;
    color: red;
    font-size: 20px;
    top: calc(50% - 40px); /* Position above the image */
    left: calc(30% + 40px); /* Position to the right of the image */
    background: none;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Dropdown Menu */
.dropdown-menu3{
    position: absolute;
    top: 100%;
    width: 100%;
    background-color: #151B54;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none; /* Initially hidden */
    z-index: 1000;
}
.dropdown-menu3{
    max-height: 340px;
    overflow-y: scroll;
}

/* Dropdown Menu Items */
.dropdown-item, 
.dropdown-item2,
.dropdown-item3{
    padding: 10px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    margin: 6px;
}

.dropdown-item:hover, 
.dropdown-item2:hover,
.dropdown-item3:hover{
    color: black;
    background-color: #fff;
}

/* Active Dropdown Menu */
.dropdown-container.active .dropdown-menu, 
.dropdown-container2.active .dropdown-menu2,
.dropdown-container3.active .dropdown-menu3{
    display: block;
}

#CSHPhide{
    display: none;
}

.verticalWrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.verticalWrap input[type="checkbox"] {
    width: 16px;   /* Standard checkbox size */
    height: 16px;
    flex-shrink: 0;
    align-self: flex-start;
}

.verticalWrap label {
    width: 10vw; /* Set consistent label width */
    flex-shrink: 0;
}

.verticalWrap .count{
    flex-shrink: 0;
}

.dateWrapped{
    justify-content: space-between !important;
}

.bottomTimePicker{
    width: 10% !important;
}

.formTable{
    position: relative;
    width: 100%;
    font-size: max(0.8vw, 10px);
    border-collapse: collapse;
    text-align: center;
    margin: 6px;
}

.formTable thead tr th{
    border: 1px solid black;
    background: #475877;
    color: white;
    padding: 10px;
}

.formTable tbody tr td{
    border: 1px solid black;
    text-align: left;
}

.tableTextBox{
    overflow-y: hidden;
    min-height: 10px !important;
    box-sizing: border-box;
    resize: none;
    
    padding: 0;
    outline: 0;
    border: 0;
    margin: 0 !important;
    text-align: center;
    font-size: max(0.8vw, 10px);
    
    width: 20vw;
}

.tableTextBox:focus{
    outline: 0;
    border: 0;

}


/* ============ Responsive / Breakpoints ========== */
@media (max-width: 1080px) {
}
@media (max-width: 774px) {
}
@media (max-width: 560px) {
    .form_alter{
        max-width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 0 !important;
        margin: 0 5px 0 5px;
    }
    .directoryWrapper_alter{
        border: 2px solid #475877;
        width: 100px !important;
        min-width: 100px;
    }
    .DOLEFormWrap{
        margin: 0;
    }
    .actionWrap{
        padding: 0;
    }
    .centerInTheFunctionTab{
        top: 50%;
        left: 12px;
        transform: translate(0, -50%);
    }
    .topContent{
        width: 50px;
    }
    .fixedButtons{
        right: 18px; 
        transform: translate(0, -50%); 
    }
    .headerContainer{
        padding: 0;
    }
}
@media (max-width: 450px) {
.header {
  width: 100%;
  height: 25vh;
  padding: 5px;
  color: white;
  display: flex;
  gap: 1em;
  flex-direction: row;
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
  align-items: center;
  background: rgba(0, 89, 179, 1);
}
.header .imgWrap1 img,
.header .imgWrap2 img {
    width: 80px;
    height: 80px;
}
.header .textSpan {
    width: 100%;
    order: -1;
}

.textSpan #span1 {
  font-size: 12px;
  font-weight: normal;
}

.textSpan #span2 {
  font-size: 14px;
  font-weight: normal;
}

.textSpan #span3 {
  font-size: 14px;
  font-weight: bolder;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}
.textSpan #span4 {
  font-size: 12px;
  font-weight: normal;
}

.textSpan #span5 {
  font-size: 10px;
  font-weight: normal;
}

.contentWrap {
  width: 100%;
  height: 100%;
  padding-top: 30px;
  padding-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: space-evenly;
  align-items: center;
  overflow-y: scroll;
}

.footer {
  display: flex;
  justify-content: center;
}

.footer .span1{
    text-align: center;
}

.form_alter{
    max-width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0;
    margin: 0 5px 0 5px;
}

.directoryWrapper_alter{
    border: 2px solid #475877;
    width: 100px !important;
    min-width: 100px;
}

.actionWrap{
    padding: 0;
}
.centerInTheFunctionTab{
        top: 50%;
        left: 12px;
        transform: translate(0, -50%);
    }
}