* {
    margin: 0;
    /*padding: 5px;*/
    box-sizing: border-box;

}

head, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fdfaf3; /* light neutral background */
    color: #2a2a2a;
    line-height: 1.6;
    height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  
}
h1, h2, h3, h4, title {
    color: #2b4d2f; /* forest green */
    text-align: center;
	/*margin-left: auto;*/
    margin-bottom: 10px;
    font-weight: 700;
}
.m-0{margin:0rem!important}
ul, li {
list-style-type: square;
/*margin: 10px;
padding: 10px;
width: 60px;*/

}
ul.permission {
  list-style-type: square;
margin: 10px;
padding: 10px;}
main {
  flex: 1;
}
/* Data Cards Details */
.dctypeDiv details,
.queueDiv details,
.materialDiv details {
    border: 1px solid #ddd;
    border-left: 5px solid #2b4d2f;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #fdfaf3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dctypeDiv summary,
.queueDiv summary,
.materialDiv summary {
    /*background-color: #2b4d2f;
    color: #fdfaf3;*/
    padding: 12px 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    list-style: none;
    position: relative;
}

.dctypeDiv summary:hover,
.queueDiv summary:hover,
.materialDiv summary:hover {
    background-color: #2b4d2f;
    color: #fdfaf3;
    border-radius: 0 8px 0 0;
   

}

/* Custom expand indicator */
.dctypeDiv summary::after,
.queueDiv summary::after,
.materialDiv summary::after {
        content: "\e185";  /* fa-caret-right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 15px;
    color: #ffcb3c;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.dctypeDiv details[open] summary::after,
.queueDiv details[open] summary::after,
.materialDiv details[open] summary::after {
    content: "\f07c";
    /*transform: rotate(180deg);*/
}

/* Content styling */
.dcContentDiv,
.queueContentDiv,
.materialContentDiv {
    padding: 15px;
    background-color: #f9f9f6;
    border-radius: 0 0 6px 6px;
    border-top: 1px solid #ddd;
}



.container {
      width: calc(100% - 200px);
    max-width: auto;
    margin: 40px auto;
    padding: 30px;
    background-color: #fdfaf3; /* light neutral background */
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);

}
.content {
  padding: 40px;
  flex: 1 1 0;
  min-width: 0;

}


select, input[type="number"] {
    padding: 10px 12px;
    margin: 10px 0;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: calc(100%);
    display: inline-block;
}
input[type="number"] {
  margin-right: 10px;
}
button:not(.resetButton) {
    background-color: #ffcb3c; /* mustard */
    color: #2a2a2a;
    font-weight: bold;
    transition: background-color 0.3s ease;
    padding: 10px 12px;
    /*margin-left: 10px;*/
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    /*width: calc(100%);*/
    display: inline-block;
}

button.resetButton {
    background-color: #ffcb3c; /* mustard - Let's not be silly. */
    color: #2a2a2a;
    font-weight: bold;
    transition: background-color 0.3s ease;
    padding: 10px 12px;
    margin-left: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 80px;
    display: inline-block;
}

button:not(.save) {
    background-color: #ffcb3c; /* mustard */
    color: #2a2a2a;
    font-weight: bold;
    transition: background-color 0.3s ease;
    padding: 10px 12px;
	margin: 10px;
    
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    /*width: calc(100%);*/
    display: inline-block;
}

button.save {
    background-color: #ffcb3c; /* mustard - Let's not be silly. */
    color: #2a2a2a;
    font-weight: bold;
    transition: background-color 0.3s ease;
    padding: 10px 12px;
	margin: 10px;
  
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 80px;
    display: inline-block;
}

button:hover, logOut:hover, save:hover, {
    background-color: #e6b800;
}
.logOut {
	
	margin-left: 15px;
	margin-right: 15px;
	width: 85%;
}

.entity-row {
    background-color: #f9f9f6;
    border: 1px solid #ddd;
    border-left: 5px solid #2b4d2f;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
	width: 100%;
}

.materials-display {
    margin-top: 10px;
}
table {
  border-radius: 8px;
  
}
hyperlanesTable{
	 border-left: 5px solid #2b4d2f;
}
table.materials, table.table, table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border-radius: 8px;
}
table.permissions, table {
    width: 50%;
    border-collapse: collapse;
    margin-top: 10px;
    border-radius: 8px;
}
	
label.selectlabel {
    width: 80px;
    display: inline-block;
}

table.materials th, table.materials td,
table.table th, table.table td,
table.permissions th, table.permissions td, table th, table td  {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
	justify-content: space-between; 
}

td:not(.entityTableCell) {
    width: 50%;
}

.entityTableCell {
    width: 33.33%;
}

table.materials th, table.table th, table.permissions th {
    background-color: #2b4d2f;
    color: #fff;
    
}
/*alternates table rows*/
table.materials tr:nth-child(even),
table.table tr:nth-child(even) 
table.permissions tr:nth-child(even), table tr:nth-child(even) {
    background-color: #f1f1ec;
}

/* CSS for the side navigation */
:root {
  --sidenav-width: 200px;
}
/* Style the side navigation */
.sidenav, .sidenav.open {
  height: auto; /*ensures the sidenav takes full height of the viewport*/   
  width: var(--sidenav-width, 200px); /* ensures the sidenav is 200px wide */
  position: relative; 
  z-index: 1000;/*ensures the sidenav is above other content*/
  top: 0;
  margin-left: 0;
    margin: 0;
  padding: 0;
  background-color: #2b4d2f; /* forest green */
  overflow-x: hidden;
  left: -200px;
  transition: margin-left 0.3s;
  padding-top: 60px;
   align-items: center;     /* Horizontal centering */
}

.sidenav.open {
  left: 0; /* Show the sidenav */
/*margin-left: 0;*/

  
}
.sidenav:not(.open) {
  margin-left: -200px; /* Hide */
}

/* Side navigation links */
.sidenav a {
  color: #fdfaf3; /* light neutral background */
  padding: 16px;
  text-decoration: none;
  display: block;
}

/* Change color on hover */
.sidenav a:hover {
  background-color: #fdfaf3;
  color: #2b4d2f;
}

/* Style the content */

.layout {
    flex: 1 0 auto;
  display: flex;
}
#sideToggleBtn {
  position: absolute;
  top: 50px;
  left: 30px;

}
.toggleBtn, #toggleBtn {
   position: absolute; /* ensures the button stays in place */
  background: none;
  border: none;
  color: #fff;
top: 30px;
  left: 20px;
  background-color: #ffcb3c; /* mustard */
    color: #2a2a2a;
    transition: background-color 0.3s ease;
}

.closeBtn, .fa fa-bars {
  position: absolute;
  top: 10px;
  left: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2em;
  /*cursor: pointer;*/
}

button,
.close-btn {

  font-size: 20px;      /* Use the value you see on PC */
  padding: 8px 16px;    /* Use the value you see on PC */
  width: auto;          /* Or set a fixed width if needed */
  height: auto;         /* Or set a fixed height if needed */
  box-sizing: border-box;
  top: 20px; /* Adjust as needed */
}
.idInput {
        padding: 5px;
    
}
button.resetButton1 {
    background-color: #ffcb3c; /* mustard - Let's not be silly. */
    color: #2a2a2a;
    font-weight: bold;
    transition: background-color 0.3s ease;
    padding: 10px 12px;
    margin: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 80px;
    display: inline-block;
}
.column-container {
    display: flex;
    justify-content: space-between; /* Spreads columns evenly */
    gap: 20px;
    padding: 10px;
    align-items: flex-start; /* Aligns columns to the top */
}

/* Limit the size of the Location Information box */
#column.loc-info {
        max-width: 400px;
        max-height: 220px;
        overflow-y: auto;
        background: #ddd;
        border: 1px solid #ccc;
        box-sizing: border-box;
        padding: 10px;
        margin-bottom: 20px;
}
.h2locinfo {
    text-align: left;
    background-color: #2b4d2f; /* forest green */
    color: #fff;
    padding: 10px;
    border-radius: 4px;
}
.column {
    flex: 1 1 0; /* Equal width */
    min-width: 250px; /* Prevents squishing on smaller screens */
        border: 1px solid #ddd;
    border-left: 5px solid #2b4d2f;
    background-color: #fdfaf3; /* light neutral background */
    padding: 10px;
    border-radius: 8px;
    box-sizing: border-box; /* Ensures padding is included in width */
    display: flex; 
    flex-direction: column; /* Stack children vertically */
    height: 100%; /* Ensures it takes full height of the parent */
    
}

.column h2 {
    text-align: center;
        background-color: #2b4d2f;
    color:  #fdfaf3; /* light neutral background */
    padding: 10px;
    border-radius: 4px;
}
.column-container1 {
    display: flex;
    flex-direction: row;
    gap: 10px; /* Optional: adds space between columns */
    align-items: flex-start; /* Aligns columns to the top */
    height: 100%; /* Ensures it takes full height of the parent */
}
.column1 {
    flex: 1 1 0;
    /*width: 100%;*/
    border: 1px solid #ddd;
    border-left: 5px solid #2b4d2f;
    background-color: #fdfaf3; /* light neutral background */
    padding: 5px;
    border-radius: 8px;
    min-width: 120px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* Stack children vertically */
    height: auto; /* Ensures it takes full height of the parent */
    overflow-y: auto; /* Adds scroll if content overflows */
}

.column h4 {
    text-align: center;
    background-color: #2b4d2f;
    color: #fdfaf3; /* light neutral background */
}


.dctypeDiv, .queueDiv, .materialDiv {
    margin-bottom: 20px;
    /*padding-bottom: 20px;*/
/*color: #2b4d2f; /* forest green */;
background-color: #ddd;
    padding: 10px;
    border: 1px solid #ddd;
/* color: #2b4d2f;  forest green */
    border-left: 5px solid #2b4d2f;
border-radius: 1px;
display: flex;

}
    
.dcassDiv, .qqtyDiv, .qtyDiv {
    display: block;
    text-align: left;
}

.matImgDiv, .prodqImgDiv, .dcimgDiv, .matImgDiv img, .prodqImgDiv img, .dcimgDiv img {
  display: block;
  justify-content: flex-end;   /* Aligns images to the right */
    align-items: right;
    /*padding: 10px;*/
    background: #ddd;
   /* border-radius: 8px;*/
    max-width: 110px;
    max-height: 110px;
  /*  border-radius: 6px;*/
    object-fit: contain;
    margin-bottom: 10px;
   /* margin-left: 375px; */
    display: flex;
    border-radius: 8px;
}

.section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 14px;
        border: 1px solid #ddd;
    border-left: 5px solid #2b4d2f;
    border-radius: 8px;
    background: #fafafa;
}
.section > .matImgDiv, .prodqImgDiv, .dcimgDiv {
    /*margin-left: 20px;*/
    display: block;
    align-items: center;
    width: 110px;
    border-radius: 8px;
}
.section > :not(.matImgDiv, .prodqImgDiv, .dcimgDiv) {
    display: block;
    flex-direction: column;
    align-items: left;
    gap: 8px;
    flex: 1;
}



  .dctypeDiv, .queueDiv, .materialDiv {
    border: 0px solid #aaa;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    background: #ddd;
    flex-direction: column;
  }

.blankDCRow {
display: grid;
grid-template-columns: repeat(5, 1fr);
/*grid-template-rows: repeat(2, 1fr);*/
grid-column-gap: 0px;
grid-row-gap: 0px;
}
.smallMatImgDiv {
	width: 50px;
	height: 50px;
  border-radius: 8px;
}

 .blankRow {
    height: 36px; /* Adjust height as needed */
}
 .blankRow {
    height: 31px; /* Adjust height as needed */
}

footer {
  flex-shrink: 0;
  width: 100%;
  background: #fdfaf3;
  color: #2b4d2f;
  text-align: center;
font-size: 0.8em; 
position: fixed;
  left: 0;
  bottom: 0;
  z-index: 1;
}


#time {
  display: flex;
  position: relative;
  gap: 40px;
  color: #2b4d2f;
}


.totaltime, .totaldate {
  position: relative;
  display: auto;
  /*flex-direction: column;*/
  justify-content: center;
  align-items: center;
}
.timecontainer {
  width: calc(100% - 200px);
    max-width: auto;
    /*margin: 40px auto;
    padding: 30px;*/
    background-color: #fdfaf3; /* light neutral background */
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
#time div {
  position: relative;
  text-align: left;

}

#time div span {
  position: relative;
  transform: translate(-50%, 0px);
  font-size: 0.5rem;
  font-weight: 700;

}

#time .ap {
  position: relative;
  font-size: 1rem;
  transform: translate(-20px, 0);
}




/* Responsive Styles for Screens up to 1200px Wide */
@media screen and (max-width: 1200px) {
  body {
    flex-direction: column;
   text-align: justify;
    height: auto;
    min-width: auto; /* Prevents squishing on smaller screens */
    width: 100%;
    z-index: 1;
    padding-top: 50px;
  }
  /* --- SIDENAV APPEAR FROM TOP --- */
  .sidenav {
    display: block;
    position: absolute;
    min-width: 200px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    top: -100%;
    width: 100%;
    height: auto;
    background: #111;
    z-index: 1000;
    overflow-x: hidden;
    transition: top 0s;
  }
  .sidenav.open {
    top: 0;
    width: 100%;
    height: auto;
    transition: top 0s;
  }
  /* --- END SIDENAV --- */
  .layout {
    flex-direction: column;
  }
  .content {
    margin-top: 20px;
    min-width: auto; /* Prevents squishing on smaller screens */
    width: 100%;
    padding: 1px;
    margin: 0;
  }
  .container {
    min-width: auto; /* Prevents squishing on smaller screens */
    width: 100%;
    padding: 1px;
    margin: 0;
  }
    details summary {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    details > div {
        padding: 12px;
    }
  .column-container {
    flex-direction: column;
    gap: 10px;
  }
  .column-container1 {
    flex-direction: flex;
    gap: 10px;
  } 
  .column, .column1 {
    width: 100%;
    min-width: 0; /* Prevents squishing on smaller screens */
    margin-bottom: 20px;
  }
  .idInput {
    width: 100%;
    padding: 10px;

  }
  .toggleBtn, #toggleBtn {
    position: static;
    background: none;
    border: none;
    background-color: #ffcb3c;
    color: #2a2a2a;
    transition: background-color 0.3s ease;
   
  }
  #sideToggleBtn {
    position: fixed;
    top: 50px;
    left: 30px;
  }
  table, table.permissions {
    width:100%
  }
  footer {
    display: none; /* Hide footer on small screens */ 
  }
time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px; 
    float: right;
  }
  #time div {
    text-align: center; /* Center text for smaller screens */
   
  }
  #time .ap {
    transform: translate(0, 0); /* Reset position for smaller screens */
  }
  .totaldate, .totaltime {
    justify-content: center; /* Center text for smaller screens */
  }

}




