html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
    .wrapper-main {
        width: 80%
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
@media only screen and (max-width:600px) {
    .wrapper-main {
        width:80%;
    }
}
@media only screen and (min-width: 601px) {

    .wrapper-main {
        width: 80%;
    }
}
img {
    max-width: 100%;
    height:auto;
}
/* Ensure the textbox fills the screen width comfortably */
textarea, input[type="text"] {
    width: 100%;
    /* max-width: 100%; is redundant with width: 100% and box-sizing: border-box; */
    box-sizing: border-box; /* Includes padding/border in width calculation */
    padding: 10px;
    resize: both; /* Corrected: Allows user to resize height and width */
    /* or resize: vertical; if you only want vertical resizing */
}

/* Desktop style (e.g., screens wider than 1024px) */
@media screen and (max-width: 1023px) {
    textarea {
        width: 100%; /* Specific desktop width */
        height: 300px; /* Larger height for desktop */
        font-size: 16px;
    }
}
/* Desktop style (e.g., screens wider than 1024px) */
@media screen and (max-width: 767px) {
    video {
        width: 100%; /* Specific mobile width */
        height: auto; 
        
    }
}
.table-container {
    overflow-x: auto;
    display: block; /* Essential for some browsers */
}
@media screen and (max-width: 600px) {
    table thead {
        display: none;
    }
    /* Hide headers */
    table tr {
        display: block;
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }

    table td {
        display: block;
        text-align: right;
        position: relative;
        padding-left: 50%;
    }

        table td::before {
            content: attr(data-label); /* Display the label on the left */
            position: absolute;
            left: 10px;
            font-weight: bold;
        }
}
@media only screen and (min-width: 1024px) {
    input[type="text"] {
        width: 600px; /* Specific width for large screens */
    }
}
/* Default desktop style (optional) */
input::placeholder {
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: pre-wrap; /* Allows the text to wrap */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* Vertically center */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Mobile-specific style for screens 600px and smaller */
@media screen and (max-width: 600px) {
    input::placeholder {
        font-size: 10px; /* Adjusted smaller size for mobile */
        text-overflow: ellipsis;
        white-space: pre-wrap; /* Allows the text to wrap */
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center; /* Vertically center */
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }
}
input[type='number'] {
    width: 100%; /* Scales to mobile container width */
    box-sizing: border-box; /* Includes padding in width calculation */
}
@media (max-width: 600px) {
    input[type='number'] {
        width: 100%;
        height: 45px; /* Larger touch target for mobile fingers */
        font-size: 16px; /* Prevents auto-zoom on iOS */
    }
}
/* Mobile-first approach or inside a media query */
@media (max-width: 768px) {
    input[type=submit] {
        width: 100%; /* Full width of container */
        padding: 15px; /* Larger, tap-friendly area */
        display: block; /* Ensures it takes full line */
        box-sizing: border-box; /* Includes padding in width */
        font-size: 16px; /* Avoids auto-zoom on iOS */
        white-space: normal; /* Allows text to wrap into multiple lines */
        word-wrap: break-word; /* Breaks long words if necessary */
        height: auto; /* Ensures height grows with wrapped text */
    }
}
/* Mobile-first approach or typical breakpoint */
@media (max-width: 768px) {
    .barcode-container svg,
    .barcode-container img {
        max-width: 100%; /* Scale to width of container */
        height: auto; /* Maintain aspect ratio */
        display: block; /* Prevent unwanted margins */
    }

    .barcode-container {
        width: 80%; /* Set custom width for mobile */
        margin: 0 auto; /* Center the barcode */
    }
}


/* Make the canvas fill its container */
canvas {
    display: block;
    width: 100%; /* 100% of viewport width */
    height: 100%; /* 100% of viewport height */
}
