/*******************************************************************************
 * SENSERA CONFIDENTIAL
 *
 * Copyright 2012 - 2025 Sensera Systems Inc. All Rights Reserved.
 *
 * NOTICE: All information contained herein is, and remains the property of Sensera Systems Inc. and its suppliers. The
 * intellectual and technical concepts contained herein are proprietary to Sensera Systems Inc. and may be covered by
 * U.S. and Foreign Patents, patents in process, and are protected by trade secret or copyright law. Dissemination of
 * this information or reproduction of this material is strictly forbidden unless prior written permission is obtained
 * from Sensera Systems Inc.
 ******************************************************************************/
@import 'sensera-color-define.css';

* {
  font-family: 'Manrope', sans-serif;
}

h2 {
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
}
body{
  margin: 0px;
}

#AiBodyContainer{
  margin: 8px 8px 0 8px;
}

#AiReportsContainer {
    display: flex;
    flex-direction: column;
}

#AiReportsContentRow {
    display: flex;
    flex-direction: row;
    width: 100vw;
    min-height: 0;
    margin-top: 60px;
    box-sizing: border-box;
}

#AiReportsLeftPanel {
    position: relative;
    top: 0;
    left: 0;
    width: 10vw;
    min-width: 160px;
    max-width: 260px;
    padding: 1% 1% 0 1%;
    flex-shrink: 0;
    border-right: 2px solid var(--sensera-gray-warm-400);
    color: var(--sensera-gray-warm-600);
    z-index: 10;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#AiReportsCenterPanel {
  display: flex;
  flex-direction: column;
  min-height: 85vh;
  width: 100%;
  background: #fff;
  justify-content: flex-start;
}

#AiReportsHeader {
    display: flex;
    height: 50px;
    position: fixed;
    align-items: center;
    padding: 16px;
    gap: 24px;
    background: var(--sensera-gray-warm-50);
    border-bottom: 1px solid var(--sensera-gray-warm-400);
    font-size: 1.5em;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

#AiReportsBackToSiteCloud {
  display: flex;
  align-items: center;
  height: 36px;
  width: 36px;
  border-radius: 6px;
  justify-content: center;
}

#AiReportsBackToSiteCloud .fa-chevron-left {
  font-size: 1rem;
  color: var(--sensera-gray-warm-800);
}

#AiReportsBackToSiteCloud:hover {
  background-color: var(--sensera-gray-warm-200);
}

#AiReportsBackToSiteCloud:active {
  background: var(--sensera-gray-warm-300);
}

#SenseraLogoBlack {
    height: 32px;
    margin-right: 50px;
    vertical-align: middle;
}

#ProjectDropdown {
    padding: 6px 30px 6px 12px;
    width: 250px;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    cursor: pointer;
    vertical-align: middle;
    /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Add custom arrow */
    /* Position arrow 12px from the right edge */
    background: url(../images/mega_arrow.png) no-repeat right 12px center;
    filter: brightness(0); /* This will make the non-transparent parts of the PNG black */
    background-size: .65em auto;
	line-height: 1.2;
}

.left-panel-subnav {
    display: flex;
    padding: 8px 3px 8px 12px;
    margin: 10px 0;
    width: 100%;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    color: inherit;
    border-radius: 6px;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-items: center;
}

.left-panel-subnav svg {
  flex-shrink: 0;
  max-width: 18px;
  max-height: 18px;
}

#AiReportsLeftPanel button.active, #AiReportsLeftPanel .left-panel-subnav.active {
    background-color: #FEF2DB;
    color: #A84817;
}

#AiReportsLeftPanel button:focus {
    outline: none;
}

#AiReportsLeftPanel button.active svg path {
    fill: #A84817;
}

/* TODO: This will work to fill the date picker, need a better solution for interactions with picker though*/
#DatePickerButton.active .date-picker-svg path {
  stroke: #A84817;
  fill: none;
}

#AiReportsLeftPanel button:hover:not(.active), #AiReportsLeftPanel .left-panel-subnav:hover:not(.active) {
  background: #e0e0e0;
}

#AiReportsLeftPanel button svg path {
    fill: #79716B;
    transition: fill 0.2s;
}

#AiReportsMainContent,
#AlertRecipientsContainer,
#AiReportsFooter {
  margin-left: 0;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
}

#AiReportsMainContent {
    display: block;
    background-color: #FFF;
    padding: 16px 50px 10px 32px;
    min-height: 70vh;
    height: auto;
    overflow-y: visible;
    max-width: 100vw;
    box-sizing: border-box;
    margin-left: 0;
    margin-top: 0;
}

#AlertRecipientsContainer {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--sensera-gray-warm-300);
  border-radius: 8px;
  margin-top: 16px;
  margin-bottom: 0;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
}

#AiReportsFooter {
  margin-top: 0;
  margin-left: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  text-align: center;
  color: var(--sensera-gray-warm-700);
  font-size: 0.95rem;
  flex-shrink: 0;
  padding: 10px;
  border-top: 2px solid var(--sensera-gray-warm-400);
  background: #fff;
  z-index: 13;
  opacity: 1;
  position: static;
}

/* Ensure images and other content do not overflow */
#AiReportsMainContent img,
#AlertRecipientsContainer img {
    max-width: 100%;
    height: auto;
    display: block;
}

#DatePickerCalendar {
  position: fixed;
  z-index: 1000;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.10);
  padding: 0 !important;
  min-width: 320px;
  min-height: 340px;
  border: none;
}

.ui-datepicker {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  background: transparent;
  border: none;
}

.ui-datepicker-header {
  background: none;
  border: none;
  text-align: center;
}

.ui-datepicker-title {
  padding-top: 12px;
  font-weight: 600;
  font-size: 20px;
  color: #222;
  margin-bottom: 8px;
}

.ui-datepicker-calendar {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.ui-datepicker-calendar th {
  color: #888;
  font-weight: 500;
  font-size: 14px;
  padding-bottom: 8px;
}

.ui-datepicker-calendar td {
  text-align: center;
  padding: 0;
}

.ui-datepicker-calendar a.ui-state-default {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  color: #222;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
#DatePickerCalendar .ui-datepicker-calendar td,
#DatePickerCalendar .ui-datepicker-calendar th {
  padding: 0.25em;
  text-align: center;
  width: 2em;
}

.ui-datepicker-calendar td.ui-datepicker-other-month a,
.ui-datepicker-calendar td.ui-datepicker-other-month {
  color: #ccc !important;
  pointer-events: none;
}

.ui-datepicker-calendar a.ui-state-active,
.ui-datepicker-calendar a.ui-state-highlight {
  background: #F28C38 !important;
  color: #fff !important;
  font-weight: 600;
}

.ui-datepicker-today a.ui-state-highlight {
  background: var(--sensera-gray-warm-600) !important;
  color: #fff !important;
  border-color: inherit !important;
}

.ui-datepicker-calendar a:hover {
  background: #f3f3f3;
}

.ui-datepicker-prev, .ui-datepicker-next {
  display: block;
  width: 32px;
  height: 32px;
  position: absolute;
  top: 10px;
  cursor: pointer;
  background: none;
  border: none;
}

.ui-datepicker-prev {
  left: 10px;
}

.ui-datepicker-next {
  right: 10px;
}

/* Add arrow icons using CSS */
.ui-datepicker-prev:before {
  content: '◀';
  font-size: 20px;
  color: var(--sensera-gray-warm-500);
  display: block;
  text-align: center;
  line-height: 32px;
}

.ui-datepicker-next:before {
  content: '▶';
  font-size: 20px;
  color: var(--sensera-gray-warm-500);
  display: block;
  text-align: center;
  line-height: 32px;
}

.ui-datepicker-next span, .ui-datepicker-prev span {
  display: none;
}

.active-date-picker {
    background-color: #FEF2DB;
    color: #A84817;
}

.active-date-picker svg path {
    stroke: #A84817 !important;
    fill: none;
}

#DatePickerInput:focus {
    border: 1.5px solid #A84817;
    background-color: #FEF2DB;
    color: #A84817;
    outline: none;
}

.target-heading {
    scroll-margin-top: 100px;
}

.site-scan-targets-container {
  border: 1px solid;
  border-color: var(--sensera-gray-400);
  border-radius: 6px;
  padding: 12px 14px;
  margin: 8px 0 22px 0;
  background: #fff;
}

.site-scan-targets-label {
  display: block;
  color: var(--sensera-gray-warm-600);
  font-size: 0.95rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.site-scan-targets-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.target-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fafafa;
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  color: var(--sensera-gray-warm-600);
  font-size: 0.9rem;
  line-height: 1;
}

.target-tag i.fa-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--sensera-gray-warm-400);
  font-size: 11px;
  margin-left: 4px;
  /*cursor: pointer;*/
}

a {
  color: var(--sensera-gray-warm-700);
}

.alert-recipients-container {
  margin: 40px 0 0 0; /* More space above the alert recipients section */
}

.alert-recipients-form {
  display: flex;
  gap: 8px;
  width: 500px;
  margin-bottom: 12px;
}

#AlertRecipientInput {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#AlertRecipientInput:focus {
  border-color: var(--sensera-orange-600);
  border-width: 2px;
  outline: none;
}

#AddAlertRecipientBtn {
  padding: 8px 16px;
  background: none;
  color: black;
  border: 1px solid var(--sensera-gray-warm-300);
  border-radius: 4px;
  cursor: pointer;
}

#AddAlertRecipientBtn:hover {
  background: var(--sensera-gray-warm-400);
}

#AlertRecipientsList {
  list-style: none;
  padding: 0;
  width: 400px;
  margin: 0;
}

#AlertRecipientsList li {
  border: 1px solid var(--sensera-gray-warm-300);
  border-radius: 4px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.remove-recipient-btn {
  background: none;
  border: none;
  color: var(--sensera-gray-warm-600);
  cursor: pointer;
  font-size: 1em;
}

#SSAlert {
  top: 100px !important;
}

html, body {
  overflow-x: hidden;
}

@media
only screen and (max-width: 1440px){
  #AiReportsLeftPanel{
    width: 15vw;
  }

}

@media
only screen and (max-width: 1000px){
  #AiReportsLeftPanel{
    width: 20vw;
    font-size: .9em;
  }
  #AiReportsCenterPanel{
    min-height: 80vh;
  }
}




@media
only screen and (max-width: 666px){

  #AiReportsLeftPanel{
    width: 40px;
    gap: 0px;
    min-width: 0px;
    padding-top: 20px;
  }


  #AiReportsHistoryDiv{
    border-top: 3px solid var(--sensera-gray-400);
  }

  #AiReportsFooter{
    background: white;
    z-index: 13;
    opacity: 1;
    position: static;
    margin-left: 0px;
  }

  .left-panel-subtext{
    display: none;
  }

  .left-panel-header{
    display: none;
  }

  .lower-header{
    display: none;
  }
}
