
:root{
    --main-color: black;

    --dark-color: black;
}


body{
    background-color: #f8f5ee;

    display: grid;
    grid-template-columns: 1.5fr 3fr;
    color: black;
}

/* Admin button pinned top right (fixed, so it stays out of the page grid) */
.adminBtn{
    position: fixed;
    top: 4px;
    right: 16px;
    z-index: 50;
    padding: 6px 14px;
    background: #f8f5ee;
    color: #1a1a1a;
    text-decoration: none;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
}

.adminBtn:hover{
    background: #1a1a1a;
    color: #fff;
}

.my-swal-popup {
    border: 3px solid var(--main-color); /* Example border: 5px thick, solid, green color */
    /* Optional: you can customize border radius too */
    border-radius: 20px;
}


/* #region orders */

.side1{
    border-right: var(--main-color) 2px solid;
    padding: 5%;
    height: 90vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; 
}

.side1::-webkit-scrollbar {
  display: none; 
}

.side1 .header{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2%;
    border-bottom: var(--main-color) 2px solid;
    font-size: 22px;
    padding-bottom: 0%;
}

.side1 .header div{
    text-align: center;
    cursor: pointer;
    padding: 2%;
}

.side1 .header .active{
    background: black;
    color: white;
    font-weight: bold;
}

.orders{
    display: grid;
    grid-template-columns: 1fr;
    padding: 3%;
}

.orders .each{
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: var(--main-color) 2px solid;
    padding: 3%;
}

.orders .each:hover{
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: 200ms;
}

.orders .infoO{
    display: grid;
    grid-template-columns: 0.5fr 1fr 1fr;
    gap: 20px;
    
}

.side2{
    padding: 5%;
    height: 90vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; 
}

.eachOrderView{
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    width: 95%;
    padding: 1%;
    padding-left: 4%;
    color: var(--main-color);
}

.one{
        height: 90vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; 
}

.eachOrderView img{
    position: absolute;
    margin-top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
}

.eachOrderView .headerO{
    display: grid;
    grid-template-columns: 6fr 0.5fr 0.5fr 0.5fr;
    font-size: 20px;
    width: 100%;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: var(--main-color) 2px solid;
}

.eachOrderView .headerO svg{
    justify-self: center;
    cursor: pointer;
}

.eachOrderView .headerO svg:hover {
    transform: scale(1.2);
    transition: 200ms;
}

.eachOrderView table{
    width: 100%;
     border: black 1px solid;
     outline: white 5px solid;

}

.eachOrderView th, .eachOrderView td{
    padding: 5px;
    text-align: center;
    color: black;
    border: none;
    border-right: black 1px solid;
}

.eachOrderView thead{
    border-bottom: black 2px solid;
}

.eachOrderView th{
    background-color: darkgray;
    
}

.eachOrderView tr:nth-child(even) {
    background-color: lightgrey;
    border: none;
    
}

.eachOrderView tr:nth-child(odd) {
    background-color: white;
    border: none;
    
}

/* recycling: parts not in inventory, under the inventory items */
.eachOrderView .manualTable{
    margin-top: 20px;
}

.summary{
    margin-top: 20px;
     border: black 1px solid;
     outline: white 5px solid;
     padding: 10%;
     font-size: 18px;
     display: grid;
     gap: 10px;
     width: 80%;
}

.summary button{
    padding: 2% 3%;
    margin: 3%;
    margin-top: 10%;
   display: grid;
   justify-self: center;
    width: 50%;
    font-size: 16px;
    background-color: transparent;
    border: #e0a800 2px solid;
    border-radius: 5px;
    cursor: pointer;
}

.summary button:hover {
    background-color: #e0a800;
    color: white;
}

.summary h3{
    text-align: center;
}

.noOrders{
    text-align: center;
    font-size: 20px;
    color: gray;
}


/* #endregion orders */

@media print {
  body * {
    display: none !important;
  }
  .side2, .side2 * {
    display: block !important;
  }
}






/* #region search */
.orderSearch {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 12px 0 0;
    padding: 10px 14px;
    font-size: 16px;
    border: var(--main-color) 2px solid;
    border-radius: 8px;
    outline: none;
}

.orderSearch:focus {
    box-shadow: 0 0 0 3px rgba(250, 181, 25, 0.35);
}

/* while searching, results come from every tab */
.side1 .header.searching .active {
    background: transparent;
    color: inherit;
    font-weight: normal;
}
/* #endregion search */

.jobName{cursor:pointer}

.orderBtns{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.orderBtns .BTN{display:flex;gap:10px}
.orderBtns button{font-size:14px;padding:6px 14px;cursor:pointer}
.megaDraftBtn{margin-left:auto}
