/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0px;
}
.thumbnail {
    cursor: pointer;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.container {
    width: 100%;
    height: 100%;
    max-width: 600px; /* Adjust maximum width as needed */
    margin: 0px auto; /* Center the container */
    padding: 2px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    line-height: normal;
    box-sizing: border-box;
    transform: translateY(20px);
}

.modal {
    display: none;
    position: fixed;
    top: 40px;
    left: 50%;
	transform: translateX(-50%);
    width: 100%;
	max-width: 600px;
    height: 90%;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
}

.modal-content {
    display: flex; /* Add flexbox display */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    position: relative;
	height: 100%;
	width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin: 0px;
	align-items: flex-start;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 30px;
    z-index: 1005;
}
.close:hover,
.close:focus {
    color: #ffaaaa;
    text-decoration: none;
    cursor: pointer;
}
.yes-btn, .no-btn {
    padding: 10px 20px;
    margin: 5px;
}
/* CSS for collapsible sections */
.section {
    margin: 0;
	position: relative;
}
.title-back{
    position: fixed;
	top: 75px;
	left: 15px;
	content: '';
    background-color: transparent;
    font-weight: bold;
	margin-bottom: 0px;
    cursor: pointer;
    transform: translateY(0%) rotate(-135deg);
    transition: .5s;
	border: solid #2000ff;
    border-width: 0 3px 3px 0;
    padding: 8px;
	z-index: 999;
}
.title-back::after {
    position: absolute;
    right: 10px;
    transform: translateY(0%) rotate(90deg);
    transition: .5s;
	border: solid #00ff00;
    border-width: 0 3px 3px 0;
    padding: 4px;
}
.title-label{
    background-color: black;
    color: white;
    font-weight: bold;
	margin-bottom: 0px;
    cursor: pointer;
	padding: 1px;
}
.title-label::after {
    content: '';
    position: absolute;
    right: 10px;
	top: 4px;
    transform: translateY(0%) rotate(-45deg);
    transition: .5s;
	border: solid #00ff00;
    border-width: 0 3px 3px 0;
    padding: 4px;
}
.section input[type="checkbox"] {
    display: none;
}
.section input[type="checkbox"] + .title-label + div {
    display: none;
}
.section input[type="checkbox"]:checked + .title-label + div {
	display: block;
}
.section input[type="checkbox"]:checked + .title-label::after {
    transform: translateY(0%) rotate(45deg);
	display: block;
}
/* Body Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
	padding-top: 20px;
	font-size: 16px;
}


/* Title Bar Styles */
.title-bar {
    position: fixed;
    top: 0;
    left: 50%;
	transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    background-color: black;
    color: #fff; /* Adjust this to your preferred text color */
    z-index: 1000; /* Ensure it stays on top of other elements */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: Add a shadow for better visibility */
    color: white;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-bar-left {
    flex: 1;
}
.title-bar-left span {
    color: #fff;
}
.title-bar-center {
    display: flex; /* Use flexbox to align items */
    align-items: center;
    justify-content: center; /* Center items horizontally */
    position: fixed; /* Fix the position at the top */
    top: 8px; /* Align at the top of the screen */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust position to truly center */
    width: 10px; /* Ensure it spans the full width */
    background-color: #000; /* Add background color if needed */
    z-index: 1000; /* Ensure it stays on top */
}
.title-bar-right {
    display: flex;
    align-items: center;
    position: relative; /* Added positioning */
}
/* Hamburger Styles */
.hamburger {
    background-color: transparent;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-right: 10px;
    z-index: 1001; /* Ensure it stays on top of other elements */
}
#hamburger:checked + .dropdown-content {
    display: block;
}
#hamburger {
    display: none;
}
.hamburger-label {
    display: block;
}

/* Dropdown Content Styles */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: black;
    padding: 3px;
    top: calc(100% + 5px);
    right: -10px;
    z-index: 1;
    width: auto;
    min-width: 120px;
}
.dropdown-content a {
            color: white;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
}
.dropdown-content a:hover {
          background-color: #1825e6;;
}
.dropdown-content.show {
       display: block;
}

/* Show dropdown content when the hamburger is clicked */
.show {
    display: block;
}

/* Hamburger Text Styles */
.hamburger-text {
    display: block;
    color: white;
    text-decoration: none;
    padding: 5px 0px;
}

.hamburger-text:hover {
    background-color: #333;
}
.button-container {
	text-align: center;
}

/* Container Styles */
.login-container{
   min-height:300px;
   max-width:250px;
   margin:40px auto;
   background:#FFF;
   border-radius:2px;
   box-shadow:0px 2px 3px rgba(0, 0, 0, 0.2);
   display:flex;
   flex-direction:column;
   overflow:hidden;
   animation: hi 0.5s;
   -webkit-transform: translateZ(0px);
   *{
      box-sizing:border-box;
   }
}
.qrcontainer {
    width: 100%;
    max-width: 600px; /* Adjust maximum width as needed */
    margin: 20px auto; /* Center the container */
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    line-height: normal; 
}
.btn {
    display: block;
    width: 200px;
    margin: 4px auto;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background-color: #4CAF50; /* Green */
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.btn.delete-btn {
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background-color: #f00000; /* Red */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.btn.delete-btn:hover {
    background-color: #a30000; /* Darker Red on Hover */
}
.btn:hover {
    background-color: #45a049; /* Darker Green */
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: none;
}
.cancel-btn {
    display: block;
    width: 200px;
    margin: 10px auto;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: #FF0000; /* Red background color */
}
.cancel-btn:hover {
    background-color: #cc0000; /* Darker red for hover effect */
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}
.cancel-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}
.btn-disabled {
    background-color: #ccc; /* Gray color for disabled button */
    cursor: not-allowed; /* Change cursor to not-allowed */
}
.classic-button {
  background-image: linear-gradient(#f7f8fa ,#accdff);
  border-color: #adb1b8 #a2a6ac #8d9096;
  border-style: solid;
  border-width: 1px;
  border-radius: 10px;
  box-shadow: rgba(255,255,255,.6) 0 1px 0 inset;
  box-sizing: border-box;
  color: #0f1111;
  cursor: pointer;
  display: inline-block;
  font-family: "Amazon Ember",Arial,sans-serif;
  font-size: 16px;
  height: 35px;
  font-size: 16px;
  outline: 0;
  overflow: hidden;
  padding: 7px;
  margin: 2px;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  width: 130px
}
form .classic-button[type="submit"] {
}
form .classic-button[type="button"] {
}
.classic-button:active {
  border-bottom-color: #a2a6ac;
}
.classic-button:active:hover {
  border-bottom-color: #a2a6ac;
}
.classic-button:hover {
  border-color: #a2a6ac #979aa1 #82858a;
}
.classic-button:focus {
  border-color: #e77600;
  box-shadow: rgba(228, 121, 17, .5) 0 0 3px 2px;
  outline: 0;
}
.text-button {
    display: inline-block;
	max-width: 100%;
    padding: 5px 10px;
    font-size: 12px;
    color: #007bff;
    background-color: transparent;
    border: 1px solid #007bff;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Ensure wrapping in modern browsers */
    transition: background-color 0.3s ease, color 0.3s ease;
}
.text-button:hover,
.text-button:focus {
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    outline: none; /* Remove default focus outline */
}
.text-button:active {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

/* Form styles */
.form-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
	font-size: 16px;
}
.input-group {
	flex: 1;
	margin-right: 20px;
}
.form-group label {
	flex: 1;
	min-width: 100px;
}
.form-group select {
	flex: 1;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group textarea {
    display: inline-block;
    width: calc(100% - 160px); /* Adjust the width to accommodate the label width and spacing */
    vertical-align: top; /* Align inputs to the top */
	font-size: 16px;
}
label {
    display: flex;
    align-items: center; /* Align items vertically */
    margin-bottom: 5px;
}
label > input {
    margin-left: 10px; /* Add some space between label and input */
}
input[type="text"],
textarea,
select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Ensure padding and border do not affect width */
}

/* Input Styles */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 5px 15px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

/* Input Focus Styles */
input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #007bff; /* Highlight color */
}

/* Input Error Styles */
input[type="text"].error,
input[type="password"].error {
    border-color: #ff0000; /* Error color */
}

/* Error Message Styles */
.error-message {
    color: #ff0000; /* Error message color */
    font-size: 16px;
    margin-top: 5px;
}
.error {
    color: #ff0000; /* Error message color */
    font-size: 16px;
    margin-top: 5px;
}

/*login form only*/
.login-form-group {
    width: 100%;
    max-width: 400px; /* Adjust as needed */
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	font-size: 16px;
}

.login-form-group h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-form-group input[type="text"],
.login-form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 1s;
	font-size: 16px;
}

.login-form-group input[type="text"]:focus,
.login-form-group input[type="password"]:focus {
    outline: none;
    border-color: #007bff; /* Highlight color */
	font-size: 16px;
}
.container .qr-code img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: -10px auto;
			margin-top: 0px; /* Adjust spacing as needed */
        }
.container .qr-code {
    font-size: 12px; /* Adjust font size as needed */
    margin-top: 0px; /* Adjust spacing as needed */
    text-align: center;
}
.search-results {
    list-style-type: none;
    padding: 0;
}
.search-link {
    color: black;
    text-decoration: none;
    cursor: pointer; /* Change cursor to pointer on hover */
}
.search-link:hover {
    text-decoration: underline; /* Underline link on hover */
}
/* General popup message styles */
.popup-message, .good-popup-message, .bad-popup-message {
    position: fixed;
    top: 20vh; /* 20% down the screen */
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 999;
    text-align: center;
}

/* Specific styles for different types of messages */
.popup-message {
    display: none;
    background-color: #f44336;
}
.good-popup-message {
    display: none;
    background-color: #00F113;
}
.bad-popup-message {
    display: none;
    background-color: #FF0000;
}

/* Show state and animations */
.popup-message.show, .good-popup-message.show, .bad-popup-message.show {
    display: block;
    opacity: 1;
    transition: opacity 1s;
    animation: fadeOut 1s 1s forwards;
}
.good-popup-message.show-long {
    display: block;
    opacity: 1;
    transition: opacity 1s;
    animation: fadeOut 1s 3s forwards;
}
/* Fade out animation */
@keyframes fadeOut {
    from { opacity: 1; z-index: 1010; }
    to { opacity: 0; z-index: -1; }
}
.attachments-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    table-layout: fixed; /* Added to ensure cells respect width constraints */
}

.attachments-table th, .attachments-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    word-wrap: break-word; /* Ensure long filenames wrap */
}

.attachments-table th {
    background-color: #f2f2f2;
}
.attachments-table tr:hover {
    background-color: #f2f2f2;
}
table {
        font-size: 16px;
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
		table-layout: fixed;
    }
th, td {
        padding: 5px;
        border: 1px solid #dddddd;
        text-align: left;
    	word-wrap: break-word; /* Ensure wrapping for action column */
    	overflow-wrap: break-word; /* Ensure wrapping in modern browsers */
    	white-space: normal;
}
th {
        background-color: #f2f2f2;
    }
tr:nth-child(even) {
        background-color: #f2f2f2;
    }
tr:hover {
        background-color: #00dd00;
        cursor: pointer;
}
.attachments-table td.action-column{
    text-align: center;
}
.attachments-table td.file-column {
    text-align: left;
    word-wrap: break-word; /* Ensure wrapping for action column */
    overflow-wrap: break-word; /* Ensure wrapping in modern browsers */
	white-space: normal;
}
.action-column form {
    display: flex;
    justify-content: center;
    align-items: center;
}
code {
        font-size: smaller;
}
    .qr-column {
        text-align: right;
    }

    .quantity-column {
        width: 60px; /* Adjust width as needed */
    }
@media (max-width: 375px) {
	#parent_container_label {
	font-size: 12px;
	} 
}
input, textarea, select {
    font-size: 16px;
}
.fade-in {
    position: absolute;
	top: 75px;
	opacity: 0;
    transition: opacity .2s ease-in;
}
#move:checked ~ .fade-in {
    position: absolute;
	top: 75px;
    opacity: 1;
    transition: opacity .75s ease-in;
}
.valid {
    border: 2px solid green;
    background-color: #11ff11;
}
.invalid {
    border: 2px solid red;
    background-color: #ff1111;
}
#filePreviewContainer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(200, 200, 200, .95);
    z-index: 1000;
}
#filePreview {
    width: 100%;
    height: 95%;
}
#backButton {
    display: block;
    margin: 10px;
    padding: 10px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}
