 body {
   color: rgb(135, 0, 0)
 }
 
 main {
    height: 100%;
    min-height: 100vh;
}
input[type="date"] {
  background: none !important;
}

/* GLOBAL SCROLL BAR */
*:not(html, body)::-webkit-scrollbar {
	width: 10px;
	height: 10px;
	cursor: pointer;
}
*:not(html, body)::-webkit-scrollbar-track {
	background: transparent;
	border-radius: 5px;
}
*:not(html, body)::-webkit-scrollbar-thumb {
	background-color: var(--hh-red);
	border-radius: 5px;
	min-height: 40px;
	border: 2px solid var(--hh-white);
}
*:not(html, body)::-webkit-scrollbar-thumb:hover {
	background-color: color-mix(in srgb, var(--hh-red), var(--hh-medium-grey) 10%);
	cursor: pointer;
}
@supports not selector(::-webkit-scrollbar) {
	*:not(html, body) {
		scrollbar-width: thin;
		scrollbar-color: var(--hh-medium-red) transparent;
	}
}


.SearchApp {
  display: grid;
  grid-auto-flow: row;
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr;
  /* height: calc(100vh - 4rem); */
  position: sticky;
  top: 8rem;
}


.SearchApp .topMargin{
  margin-top: 1rem;
}

.SearchApp .filterSection {
  justify-content: space-between;
  margin-bottom: 15px !important;
}

@keyframes popover {
	from { 
		opacity: 0;
		transform: translateY(1em);}
	to { 
		opacity: 1; 
		transform: translateY(0);
	}
}
@keyframes popoverbackdrop {
	from { opacity: 0; }
	to { opacity: 1; }
}
[popover] {
	animation: popover 0.2s ease-out;
	background-color: rgba(255,255,255, 0.9);
	backdrop-filter: blur(30px);
	padding: 1.5em;
	border-radius: 0.5em;
	box-shadow: 0 0 1em rgba(0,0,0,0.2);
	border: 1px solid rgba(0,0,0,0.1);
}
[popover]::backdrop {
	animation: popoverbackdrop 0.2s ease-out;
	background-color: rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(20px);
}

.Controls {
    display: flex
;
    gap: var(--gap);
    margin: 0;
    align-items: center;
}

.dropdown-filters {
    display: flex;
    align-items: center;
    gap: 5px !important
}

hh-panel:not([hidden]) {
    transform: translateX(-100%);
    transition: transform .25s ease;
}

.plpSorting {
    margin-left: auto;
}

@media (max-width: 1025px) {
    /* .FilterDesktop {
        display: none !important;
    } */    
}

@media (min-width: 1025px) {
    .FilterMobile {
        display: none !important;
    }
}
@media (max-width: 600px) {
  .HI_Search .FormTriColumns {
    grid-template-columns: 1fr !important
  }
}


/**Flyout css****/
.flyout-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  border: none;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  background: transparent;
  overflow: visible;
  z-index: 1000;
}

.flyout-dialog::backdrop {
  background: rgba(0, 0, 0, 0.3);
}

.flyout {
  background: white;
  width: 300px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  /* padding: 1rem; */
  position: relative;
  animation: slideIn 0.3s ease-out forwards;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.flyout.slide-out {
  animation: slideOut 0.3s ease-in forwards;
}

.flyout-content {
  flex: 1;
  overflow-y: auto; /* allow scrolling inside the flyout if needed */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  .menu {
    padding: 1rem 0rem;
  }
  .options-menu-item > div > a {
    padding: 0rem 1rem 0rem 1.5rem !important;
  }
  .options-menu-item > div > a:hover {
    color: var(--hh-red) !important;
    transform: translateX(.15em);    
    transition: color 0.25s ease, transform 0.25s ease;
  }
}

.close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  cursor: pointer;
}

.flyout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 1rem 1.5rem;
}

.ControlButton {
	border: 2px solid var(--hh-red);
	border-radius: 24px;
	height: 45px;
	width: 45px;
	box-sizing: border-box;
	aspect-ratio: 1;
	display: flex;
	justify-content: center;
	align-items: center;
  background: var(--hh-white);
}

.ControlButton.disabled {
  border: 2px solid var(--hh-dark-grey);
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.3;
}

@keyframes slideIn {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(0);
	}
}

@keyframes slideOut {
  from {
      transform: translateX(0);
  }
  to {
      transform: translateX(-100%);
  }
}

/**LOGIN******************/
.login-container {
	background: var(--hh-white);
	padding: calc(var(--gap) * 1.25) var(--gap);
	max-width: 640px;
	margin: auto;
	border-radius: 6px;
	overflow: hidden;
	> h2 {
		padding-bottom: calc(var(--gap) / 2);
	}
	> hgroup {
		padding-bottom: 0;
	}
	hgroup + .Form {
		padding-top: 0 !important;
	}
	> #loginForm fieldset {
		padding-bottom: calc(var(--gap) / 2) !important;
	}
	> #loginForm .ButtonGroup {
		width: 100% !important;
		justify-content: space-between;
		align-items: center;
		padding-top: calc(var(--gap) / 2) !important
	}
}

.password_with_icon {
	display: flex;
	position: relative;
}
.password-icon {
	position: absolute;
	right: 10px;
	top: 60%;
	transform: translateY(-50%);
}
@media screen and (max-width: 767px) {
	#loginForm .ButtonGroup {
		flex-direction: column;
	}
	.login-button {
		width: auto;
	}
}

/*********Affiliated Items Product Popup******************/
.popup-print img {
  width: 20px !important;
  margin-top: 2px;
}

/********Order Management (Review/History/Checklists) ********************/
.page-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between; /* heading left, tabs right */
  gap: 1rem;
}

/* ✅ Mobile view */
@media screen and (max-width: 767px) {
  .page-header-flex {
    flex-direction: column-reverse;
		align-items: flex-start;
  }
}
.order-detail.grey-flex-container {
  .summary-item {
    border-right: 1px solid var(--hh-grey) !important;
  }
}
.order-management-container, .tableContainer {
	margin-top: 20px;

  .order-review-empty {
    background: var(--hh-light-grey);
    margin-top: 25px;
    text-align: center;
    height: 25rem;

    .order-review-empty-content {
      position: relative;
      top: 40%;
      font-size: 20px;
      color: var(--hh-dark-grey);
    }
  }
}
.order-status-indicator {
  display: list-item;
  text-indent: -11px;
  margin-left: 23px;
  font-size: 14px;
  font-weight: 700;
}

.order-status-backdrop {
  border-radius: 15px;
  color: var(--hh-white);
  margin-left: 14px;
  padding: 2px 13px 0px 13px;
}
.greenCode {
  background-color: var(--hh-green);
}
.lightPinkCode {
  background: #ED7F82;
   color: var(--hh-black);
}
.redCode {
  background: var(--hh-red)
}

.blueCode {
  background: #0085A4
}

.pinkCode {
  background: #AF1F8E
}
.yellowCode {
  background: var(--hh-yellow);
  color: var(--hh-black);
}

.transparent-flex-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 18px;
  margin-bottom: 15px;
  div {
    padding: 0px 6px 0px 7px;    
  }
  /* Borders for desktop */
  > div:not(:last-child):not(:nth-last-child(2)) {
    border-right: 1px solid var(--hh-dark-grey);
  }
}

.grey-flex-container {
    display: flex;
    background: var(--hh-light-grey);
    justify-content: flex-start;
    align-items: center;
    width: 40%;
    padding: 10px 0px 10px 10px;
    flex-wrap: wrap;
    gap: 15px;

    > div:not(:last-child):not(:nth-last-child(2)) {
      border-right: 1px solid var(--hh-grey);
      padding-right: 14px;
    }
    /* Borders for desktop */
    /* > div:not(:last-child):not(.no-left-border) {
      border-right: 1px solid var(--hh-grey);
      padding-right: 14px;
    } */

    > div > .label {
        font-weight: 700;
    }
    .finalize-order:disabled {
      border: 2px solid var(--hh-dark-grey) !important;
      pointer-events: none;
      opacity: 0.3;
      background: var(--hh-white) !important;
      color: var(--hh-red) !important;
    }
    /* ✅ Mobile view */
    @media screen and (max-width: 767px) {
        align-items: center;
        width: 100%; /* Full width on mobile */

        > div {
            flex: 1 1 30%; /* First three items share row */
            text-align: center;
            border-right: none; /* Remove borders for mobile */
            padding-right: 0;
        }

        /* First three items stay in one row */
        > div:nth-child(1),
        > div:nth-child(2),
        > div:nth-child(3) {
            flex: 1 1 20%;
			padding-left: 15px;
        }

        /* Last two items go below */
        > div:nth-child(4),
        > div:nth-child(5) {
            flex: 1 1 47%;
            margin-top: 10px;
            text-align: center;
        }
    }
}
.order-management-table {
	margin-top: 30px;	
	.table-container {
		overflow-x: auto;
		width: 100%;
    overflow-y: auto;
    max-height: 550px;

    .text-grey-underline {
      text-decoration: underline;
      text-decoration-color: var(--hh-grey);
      text-underline-offset: 3px;
      text-decoration-thickness: 1.5px;
      cursor: pointer;
    }
		.sort-arrow {
			cursor: pointer;
		}
		table {
			border-collapse: collapse;
			width: max-content;
			min-width: 100%;
      
      tbody tr:nth-child(2n) {
        background-color: var(--hh-light-grey)
      }

      thead th {        
        position: sticky;
        top: 0; /* Stick to top */
        background: var(--hh-white);
        z-index: 4; /* Higher than cells */
      }

      /* Alternate row coloring for sticky first column */
      th:first-child,
      td:first-child {
        position: sticky;
        left: 0;
        z-index: 5;
        background: var(--hh-white);
      }
      tbody tr:nth-child(even) td:first-child {
        background: var(--hh-light-grey);
      }
      tbody tr:nth-child(odd) td:first-child {
        background: var(--hh-white);
      }
		
			th,
			td {
				/* border-bottom: 1px solid var(--hh-grey);				 */
				text-align: left;
				padding: calc(var(--gap) / 3) calc(var(--gap) / 2);
				white-space: nowrap;
			}
		
			th {
				white-space: normal;
				border-bottom: 1px solid var(--hh-medium-grey);
				vertical-align: bottom;
				line-height: 1.2;
				font-family: hhAgendaBold;
				font-weight: 400;
		
				&:last-child:not(.listAction){
					border-left: 1px solid #ccc;
					text-align: center;
				}
			}
		
			td {
        &:last-child:not(.listAction) {
          border-left: 1px solid #ccc;
          text-align: center;
        }

      
        /* Editable cell */
        .input-wrapper {
          position: relative;
          display: flex;
          align-items: center;

          .input_with_icon_padding {
            padding: 2px 24px 2px 30px;
          }
          .tooltip-container img{
            position: absolute;
            top: 9px;
            left: 5px;
          }
          input {
            width: 100%;
            padding: 2px 24px 2px 7px;
            height: 30px;
            border: none;
            border-radius: 6px;
            border: 1px solid var(--hh-red);
            background-color: var(--hh-white);
            font-family: "hhAgendaMedium", sans-serif;
            font-size: 14px;
            &[readonly] {
              /* background-color: var(--hh-light-grey); */
              border: 1px solid var(--hh-medium-grey) !important;
              border:none;
              cursor: default;
            }
          }
      
          button  {
            position: absolute;
            right: 2px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 14px;
            color: #555;
            top: 7px;
          }
          .icon-btn.edit {
            top: 7px;
          }
        }
			}
			
			/* ✅ Sticky first two columns */
			th:first-child,
			td:first-child {
				position: sticky;
				box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);       
        left: 0;
				z-index: 3;
			}
      /* Sticky header for first column */
      thead th:first-child {        
        position: sticky;
        top: 0;
        left: 0;
        background: var(--hh-white);
        z-index: 12; 
      }
      td>span:before {
        content: "";
        height: .75rem;
        width: .75rem;
        display: inline-block;
        border-radius: 50%;
        margin-right: 6px
      }
      
      td>span.LightPink:before {
        background: #ED7F82
      }
      
      td>span.Green:before {
        background: var(--hh-green)
      }
      
      td>span.Red:before {
        background: var(--hh-red)
      }
      
      td>span.Blue:before {
        background: #0085A4
      }
      
      td>span.Pink:before {
        background: #AF1F8E
      }
      td>span.Yellow:before {
        background: var(--hh-yellow)
      }
      .ellipsis-column {
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
		}
	}
}

dialog.confirmation-dialog {
    width: 450px;
    text-align: center;
	.dialog-content {
		padding: 10px 30px;
	}
	.dialog-action-buttons {
		margin-top: 20px;
	}
}

/* Overlay covers the entire screen. To show loading icon */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(111 111 111 / 50%); /* semi-transparent black */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* ensure it's on top */
}

/****Logout css*********/
.textStyle{
  display: block !important;
  color: #000 !important;
  padding: 0 0 18px !important;
}
.flex-with-icon {
  display: flex;
  gap: 7px;
  a {
    font-weight: bold;
  }
}
