@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&family=Pacifico&family=Sacramento&display=swap');

/* leads start */
.leadFrame {
  width: 100%;
  margin-top: 20px;
  height: 100vh;
  /* overflow: scroll; */
}

.exportBtn{
  float: right!important;
}

/* .leadsMainDiv{
    width: 90%;
    margin-top:-15px;
    height:8vh;
    margin-left: 0px!important;
    position: fixed;
    z-index: 100;
    background-color: white;
    font-size:14px;
    align-items: center;
 } */
.lead-nav {
  display: flex;
  /* margin-top: 1%; */
}
/* .customDropdownMenu{
  display: none;
  position: absolute;
  z-index: 1000;
} */
.customDropdownMenu {
    display: none;
    position: absolute;
    z-index: 9999;
}



.pm_condition,.pm_values{
  width:300px;
}

.lead-nav a {
  font-size: 1rem;
  color: #0d6efd !important;
}
.lead ul li{
  padding-left: -10px !important;
}

.m-2 {
  margin: 0.5rem !important;
}

.timesheetAlert{
  float: right!important;
}

#previewModalBody {
  font-size: 1rem;
  line-height: 1.6;
}
#previewModalBody h5 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.propoButton {
  background-color: #00b299 !important;
  color: white !important;
  border: none !important;
  outline: none !important;
  padding: 5px !important;
}

.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  padding: 0;
  margin: 0;
}


.proposal_chatwindow {
  position: fixed !important;
  top: 0%;
  right: 0.8% !important;
  width: 40%;
  height: 85%;
  background: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.proposal_chatwindow .proposal_chatContent {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.proposal_chatwindow .proposal_chatField {
  width: 100%;
  height: 10%;
  background: grey;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contextMenu {
  cursor: pointer !important;
}

.chatMessage {
  width: auto;
  background: #00af9a;
  padding: 3px;
  margin: 3px;
  border-radius: 5px;
  color: #fff;
}

.chatMessage sub {
  color: #f9f9f9;
}

.chatIcon {
  position: absolute;
  right: 2%;
}

.chatIcon i {
  color: #00af9a;
}

.chatContainer {
  display: flex;
  margin: 3px;
}

.otherthanClient button,
.client button,
.proposal_chatwindow,
#proposal_chat {
  display: none;
}

.lead-item .dropdown-menu {
  padding: 2px 3px 2px 3px
}


.lead-nav li {
  margin-right: 10px;
  list-style-type: none;
  font-weight: 500;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.lead-nav li .dropdown-item {
  padding: 2px 3px 2px 3px;
}

.lead-nav li:hover {
  background-color: inherit !important
}

/* #navbarContacts{
  background-color:white !important;
  margin-top: -9px;
  font-weight: bold;
  height: 40px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
} */
/* #navbarContacts .nav-link.active{
  border-bottom: 3px solid green;
} */
.clientempty {
  display: flex;
  height: 70vh !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  display: none;
}

.empty {
  display: flex;
  height: 70vh !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  display: none;
}

.table-responsive::-webkit-scrollbar {
  background-color: #f5f5f5;
  width: 8px;
  height: 8px;
}

.nav-link {
  cursor: pointer !important;
}

.table-responsive {
  display: block;
  width: 100%;
  /* overflow-x: auto; */
  -webkit-overflow-scrolling: touch;
}

.leads_addnew,
.client_addnew {
  float: right !important;
}

.contextLeadMenu {
  cursor: pointer;
}

/* leads end */

/* lead form start */
#formUpdate {
  display: none;
}

#formSaveClose {
  display: none;
}

.formHead div {
  display: flex;
  align-items: center;
  padding: 5px;
  min-height: 10vh;
  margin-top: 20px;
}

.headers h2 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5em;
  padding-bottom: 5px;
  color: #000;
  position: relative;
}

.headers h2:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  width: 55px;
  background-color: #003554;
}

.headers h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 1px;
  width: 95%;
  max-width: 255px;
  background-color: #003554;
}

/* lead form end */


/* proposal form start */
.proposal_title {
  /* text-transform: uppercase; */
  color:#0d6efd;
  font-weight: bold;
  font-size: 20px;
}

.pendingProposal_table th {
  background-color: #369;
  color: white;

}
button {
  all: unset;
  cursor: pointer;
}
.ongoingContractTable th {
  /* background-color: #369 !important; */
  color: white !important;
}

.ongoingUpload {
  padding: 4px !important;
  border: none;
  background-color: #369;
  padding: 5px;
  border-radius: 5px;
  color: white;
}

.text-center {
  text-align: center !important;
}

/* .penPro_plus,.observation_addNew {
  font-size: 17px !important;
  Background-color:#369 !important;
  color: white !important;
  border: 1px solid royalblue !important;
  border-radius: 5px;
  font-weight: 600;
  padding-left: 20px;
  padding-right: 20px;
  width:150px;
} */
.penPro_plus {
  float: right;
  margin-top: -30px;
}

.observation_addNew {
  float: right;
}

.reportClientTable.reportLeadTable,
.observationsTable,
.projectsTable {
  /* border: 1px solid black; */

}

.reportClientTable th,
.reportLeadTable th,
.observationsTable th,
.projectsTable th {
  background-color: rgb(100, 168, 236) !important;
  color: white;
  min-width: 200px;
}

.leadReportTable thead th{
  background-color: rgb(100, 168, 236) !important;
}
.leadReportTable tbody tr:nth-child(odd) {
  background-color:white !important;
}
.leadReportTable tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}
/* .reportClientTable tr:nth-child(odd),.reportLeadTable tr:nth-child(odd) {
  color: #000;
  font-weight: 600;
} 

.reportClientTable tr:nth-child(even),.reportLeadTable tr:nth-child(even) {
  background-color: #e5e5e5;
  color: #003554;
  font-weight: bold;
}  */

.leadSection,
.clientSection {
  display: none;
}

.createProject {
  margin-left: 10px;
}

.contract_editIcon {
  margin-left: 10px;
}

/* client page */
.pm_table {
  width: 50vw;
  height: 68vh;
}

.pm_chartWholeDiv {
  width: 50vw;

}

.pm_fullchart1 {
  height: 34vh;
  width: auto;
}

.pm_fullChart2 {
  height: 34vh;
  padding-top: 50px;
}

.client-container {
  overflow: hidden;
}

.pm_chartContainer1 {
  height: 25vh;
}

.pm_chartContainer2 {
  height: 25vh;
  margin-top: -30px;
}

.pm_cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  height: auto;
}

.pm_cards .card {
  flex: 0 0 calc(20% - 5px);
  margin: 2px;
  color: black;
  cursor: pointer;
}

.pm_chart_section {
  display: flex;
}

.pm_chart_left,
.pm_chart_right {
  flex: 1;
  padding: 1rem;
}

.whole_dashboardone {
  height: 70%;
}

.whole2_dashboard {
  width: 100%;
  height: 90%;
}

.pm_names ::before {
  font-size: 20px;
}

.pm_container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

#all_pivot-container li {
  color: black
}

.pm_left {
  width: 42px;
  height: 42px;
  border-radius: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm_right {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #191970;
}



.pm_proposal {
  border-bottom: 3px solid #FF7F50;

}

.pm_ongoing {
  border-bottom: 3px solid #FDDA0D;
}

.pm_signed {
  border-bottom: 3px solid #00A36C;
}

.pm_pending {
  border-bottom: 3px solid #FAA0A0;

  /* background: linear-gradient(#07A3B2,#D9ECC7); */

}

.pm_completed {
  border-bottom: 3px solid #6495ED;
}

.pm_size {
  font-size: 1.1rem;
  font-weight: 700;
  color: #191970;

}


#chartName {
  color: #191970;

}

#showProject {
  background: #a880b5;
  color: white;
  font-weight: 700;
  /* letter-spacing: 2px; */
}

.pm_getText {
  font-size: 23px;
  padding-left: 1%;
  color: #191970;
}

.pm_dashboard {
  color: #191970;
  padding-left: 0.5%;
}

.dashboard_button {
  color: white !important;
}

#makeChanges {
  display: none;
}

/* common dropdpwn navbar */
.pm_dropdown ul li .dropdown-item:hover {
  background-color: #b2b1e6!important;
  color: white!important;
}
.pm_dropdown ul li .dropdown-item.active {
  background-color: #b2b1e6!important;
  color: white!important;
}
.showContent{
  display: none;
}

/* Business Start */
.projectCard {
  width: 24% !important;
  height: 100%;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

.projectButtons {
  width: 20%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.projectDBContainer {
  /* opacity: 0; */
}
/* Business End */

.pm_pendingContracts{
  float: right!important;
}


/* added by vignesh */

/*
======================================================
  STYLE: MODERN UNDERLINE TABS
  Recreating the style from the provided image.
======================================================
*/

/* --- 1. The Tab Container (the overall bar) --- */
#mainTab.nav-tabs {
  /* The subtle, full-width line that runs under all tabs */
  border-bottom: 1px solid #e5e7eb; 
  
  /* Reset Bootstrap's default button borders */
  border-top: none;
  border-left: none;
  border-right: none;
  
  /* Use flexbox for spacing */
  display: flex;
  gap: 1.5rem; /* Adjust the space between tab items */
}

/* --- 2. General Tab Button Styling --- */
#mainTab .nav-link {
  /* Reset Bootstrap defaults */
  border: none;
  background-color: transparent;
  border-radius: 0;
  
  /* Typography */
  font-weight: 600;
  font-size: 1rem; /* 16px */
  color: #6b7280; /* Muted gray for inactive tabs */
  
  /* Spacing & Underline setup */
  padding: 0.75rem 0.25rem; /* Minimal horizontal padding to keep underline tight */
  margin-bottom: -1px; /* Allows active border to sit perfectly on the container's border */
  border-bottom: 3px solid transparent; /* IMPORTANT: Reserves space for the active underline to prevent layout shift */

  /* Smooth transition for color and border changes */
  transition: all 0.2s ease-in-out;
}

/* --- 3. Hover State (for inactive tabs) --- */
#mainTab .nav-link:not(.active):hover {
  color: #1f2937; /* Darker text on hover */
  border-bottom-color: #e5e7eb; /* A subtle hint of the underline on hover */
}

/* --- 4. Active Tab Styling --- */
#mainTab .nav-link.active {
  color: #1e40af; /* Primary brand blue for the active text */
  border-bottom-color: #1e40af; /* The visible underline */
}

/*
======================================================
  RESPONSIVE BEHAVIOR
======================================================
*/

@media (max-width: 768px) {
  #mainTab.nav-tabs {
    /* Enable horizontal scrolling on mobile */
    overflow-x: auto;
    flex-wrap: nowrap;
    
    /* Hide the scrollbar visually but keep its functionality */
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  #mainTab.nav-tabs::-webkit-scrollbar {
    display: none;
  }

  /* Ensure individual links don't break their text */
  #mainTab .nav-link {
    white-space: nowrap;
  }
}

.filterbtn{
  background-color: #191970 ;
  color: white ;
  border: none;
  padding: 40px 80px ;
  border-radius: 2px ;
  
}
.filterbtn:hover{
  background-color: rgb(17, 17, 72) ;
  color: white ;
  border: none;
 
  /* font-size: 14px ; */
}

.contractdrop{
  width: 200px;
  height: 45px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
  font-size: 14px;
}

.pm_filterSection{
display:none
}
#previewModalBody table.dataTable tr.child {
    display: none;
}
.upload-signature-pane {
  display: none;
}

/* 2. When a parent row has the class 'is-open', display its IMMEDIATE NEXT sibling if it's a child row. */
#previewModalBody table.dataTable tr.is-open + tr.child {
    display: table-row !important; /* Use 'table-row' for correct table layout */
}
.signature-preview-style {
    font-size: 2.5rem;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.signature-preview-style:hover {
    background-color: #f8f9fa;
}

.signature-preview-style.selected {
    border-color: #0d6efd; /* Bootstrap primary blue */
    background-color: #e7f1ff;
}

/* Specific font styles */
[data-font="Dancing Script"] { font-family: 'Dancing Script', cursive; }
[data-font="Sacramento"] { font-family: 'Sacramento', cursive; }
[data-font="Pacifico"] { font-family: 'Pacifico', cursive; }

/* Styling for the final signature image inside the draggable box */
.signature-field img {
    width: 100%;
    height: auto;
    display: block;
}

/* Ensure the image preview in the modal doesn't overflow */
#signature-image-preview-container img {
    max-width: 100%;
    max-height: 200px;
    border: 1px dashed #ccc;
    padding: 5px;
}

/* Remove the line from the original signature box if it contains an image */
.signature-field.has-image .signature-line {
    display: none;
}

.signature-field {
    position: absolute;          /* Correct */
    display: inline-block;       /* <-- THIS IS THE FIX! */
    border: 2px dotted #5a5a5a;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    cursor: move;
    z-index: 1056;
    width: 250px;
    text-align: center;
}
.signature-field.is-empty {
    display: flex;
    justify-content: center;
    align-items: center;
}
.signature-field .placeholder-text {
    color: #888;
    font-style: italic;
    font-size: 0.9rem;
    pointer-events: none;
}

/* Wrapper for the drawing canvas */
.signature-canvas-wrapper {
    border: 1px dashed #aaa;
    border-radius: 4px;
    width: 100%;
    height: 200px;
    position: relative;
}

/* The actual canvas element */
#signature-canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none; /* Important for touch devices */
}

/* .projectsTable th.clientName,.projectsTable th.remarks{
  min-width: 400px;
} */


nav-link{
  color: #191970;
}

.hide{
  display: None!important;
}