body {
        font-family: 'Arial', sans-serif;
        background-color: #F8F9FD;
        margin: 20px;
        color: #333;
      }

      h1,
      h2 {
        text-align: center;
        color: #0b0eeb;
        font-size: inherit;
      }

     #tablex {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 0px 0px 10px 10px;
    background-color: #F1F3FF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 0%;
}

#hcnt
{
font-size:17px;
font-weight:bold;
margin-left: -85%;
}

#th, td {
    padding: 15px;
    text-align: left;
    border: 1px solid #C3C5FF;
}

thead th {
    border: none;
}

/* Responsive table header container */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.header-logo {
    flex: 1;
    text-align: center;
}

.header-title {
    flex: 2;
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    text-align: center;
}

#headercomp
{
    font-size:1.25em;
    margin-left:5%;
    margin-right:5%;
}
.header-image {
    max-width: 4em;
    width: 100%;
    height: auto;
}
.additional-address-btn {
  background: linear-gradient(90deg, #6a6eed 0%, #8e53e7 100%);
  color: #fff;
  padding: 6px 14px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgb(160 72 187 / 35%),
              inset 0 -2px 3px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

.additional-address-btn:hover {
  background: linear-gradient(90deg, #5c61ed 0%, #8347de 100%);
  box-shadow: 0 6px 14px rgb(153 72 187 / 45%),
              inset 0 -2px 5px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.additional-address-btn:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}


/* Responsive styles */
@media (max-width: 768px) {
    .table-header {
        flex-direction: column;
    }
    .header-logo, .header-title {
        flex: unset;
        margin: 5px 0;
        text-align: center;
    }
    .header-image {
        max-width: 80px;
    }
    #results
    {
    width: 85% !important;    
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1em;
    }
    .header-image {
        max-width: 6em;
    }
    #results
    {
    width: 85% !important;    
    }
}

      td {
        font-size: 14px;
      }

      tr:nth-child(even) {
        background-color: #E0E3FF;
      }
      
      #htop
      {
      }

      tr:hover {
        background-color: #D6DAFF;
      }

      a {
        text-decoration: none;
        color: #0508e8;
        font-weight: bold;
      }

      a:hover {
        text-decoration: underline;
      }

      .popup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        width: 80%;
        max-width: 800px;
        max-height: 80%;
        overflow-y: auto;
        z-index: 1000;
        padding: 20px;
        display: none;
      }

      #half {
        width: 50%;
      }

      .popup p {
        color: #333;
      }

      #half {
        width: 50%;
      }

      .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
      }

      .close-btn {
        background: #6C3B85;
        color: #fff;
        border: none;
        border-radius: 5px;
        padding: 10px 15px;
        cursor: pointer;
        float: right;
      }

      .close-btn:hover {
        background: #8A4CAF;
      }

      div.logo {
        zoom: 0.6;
        width: 10em;
        height: 12em;
        background: url(https://cin.iadv.io/img/logoiadv.png) no-repeat, linear-gradient(transparent, transparent);
        margin-top: -1.5em;
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1%;
      }

      #results {
        position: absolute;
        border: 1px solid #ccc;
        background: #fff;
        max-height: 200px;
        overflow-y: auto;
        width: 300px;
      }

        .inline-flex {
          display: inline-flex;
          align-items: center;
          flex-wrap: nowrap;
        }
        
        .tooltip-icons {
          display: inline-block;
          width: 14px;
          height: 14px;
          font-size: 10px;
          line-height: 14px;
          text-align: center;
          margin-left: 6px;
          background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
          color: #fff;
          border-radius: 3px;
          font-family: Arial, sans-serif;
          position: relative;
          top: -1px;
          white-space: nowrap;
        }

        .tooltip-icons:hover {
          background-color: #0056b3;
        }

      #results div {
        padding: 10px;
        cursor: pointer;
      }

      #results div:hover {
        background: #f0f0f0;
      }

      @keyframes blink-blue {
          0% { color: rgb(255, 115, 0); opacity: 1; }
          50% { color: rgb(255, 115, 0); opacity: 0; }
          100% { color: rgb(255, 115, 0); opacity: 1; }
      }

      .blink-arrow {
          margin-left: 25%;
          animation: blink-blue 1s infinite;
          color: rgb(255, 115, 0);
          cursor: pointer;
      }

      /* ===== GST Additional Address Popup Styling (Final) ===== */

.gst-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 41, 47, 0.6);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(4px);
}

.gst-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 750px;
    background: linear-gradient(to bottom right, #ffffff, #f7f9ff);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    max-height: 85vh;
    overflow-y: auto;
    padding: 25px 30px;
    /* animation removed */
}

.gst-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e3e6f0;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.gst-popup-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #364f6b;
}

.gst-popup-close {
    background: linear-gradient(135deg, #3c63f4, #5328a1);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 50%;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.2);
    transition: 0.3s ease;
}

.gst-popup-close:hover {
    background: linear-gradient(135deg, #e84118, #ff5e5e);
}

.gst-popup-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

/* Address Card */
.gst-address-block {
    border-left: 4px solid #6c63ff;
    background: #ffffff;
    padding: 15px 20px;
    margin-bottom: 18px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.gst-address-type {
    color: #6c63ff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.gst-address-detail {
    color: #2f3542;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Scrollbar Styling */
.gst-popup-body::-webkit-scrollbar {
    width: 8px;
}
.gst-popup-body::-webkit-scrollbar-thumb {
    background: #c3c5ff;
    border-radius: 10px;
}
.gst-popup-body::-webkit-scrollbar-track {
    background: #f0f2f5;
}

/* Responsive */
@media (max-width: 600px) {
    .gst-popup {
        padding: 20px;
    }
    .gst-popup-header h2 {
        font-size: 1.25rem;
    }
    .gst-popup-close {
        padding: 6px 12px;
        font-size: 13px;
    }
}



      
  #data-table > tr > td > button {
   padding: 5px 10px;
    background: linear-gradient(90deg, #6a6eed 0%, #8e53e7 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease-in-out;
}

#data-table > tr > td > button:hover {
    background: linear-gradient(135deg, #8e53e7 0%, #6a6eed 100%);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

#data-table > tr > td > button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#data-table > tr > td > button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 110, 237, 0.5);
}
#headmain
{
    background-color:#C3C5FF !important;
}
#headsec
{
    background-color:#C3C5FF !important;
}
.enhanced-square-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: #F1F3FF; /* Default background */
  border: 2px solid #C3C5FF;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  cursor: pointer; /* Indicates the button is clickable */
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s; /* Smooth hover effects */
  position: relative;
  overflow: hidden; /* For ripple effect */
}

/* Image inside button */
.enhanced-square-button img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* Hover and active states */
.enhanced-square-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  background-color: #E0E4FF; /* Slightly lighter background on hover */
}

.enhanced-square-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Focus outline for accessibility */
.enhanced-square-button:focus {
  outline: none; /* Remove default focus outline */
  box-shadow: 0 0 8px 2px rgba(93, 95, 239, 0.6); /* Custom focus glow */
}

/* Ripple effect */
.enhanced-square-button:after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgba(93, 95, 239, 0.3); /* Ripple color */
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  opacity: 0;
}

.enhanced-square-button:active:after {
  animation: ripple 0.6s linear forwards;
  transform: scale(1);
  opacity: 1;
}

/* Keyframe for ripple animation */
@keyframes ripple {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .enhanced-square-button {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .enhanced-square-button {
    width: 40px;
    height: 40px;
  }
}
      .search-container {
        width: 95%;
        max-width: 95%;
        position: relative;
      }

      #companySearch {
        width: 50%;
        padding: 15px;
        border: none;
        border-radius: 25px;
        outline: none;
        font-size: 16px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease-in-out;
      }
      
      @media (max-width: 768px) {
    #companySearch {
        width: 80%;
    }
}

      #companySearch:focus {
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
        transform: scale(1.05);
      }

      #results {
        position: unset;
        width: 50%;
        max-height: 200px;
        overflow-y: auto;
        margin-top: 5px;
        border-radius: 10px;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border: 0px;
      }

      #results div {
        padding: 10px;
        border-bottom: 1px solid #f1f1f1;
        cursor: pointer;
        transition: background 0.2s;
      }

      #results div:hover {
        background: #f4f4f4;
      }

      #results div:last-child {
        border-bottom: none;
      }
      
      .table-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Ensures even spacing between items */
  padding: 10px;
  border-radius: 10px;
}

/* Enhanced button styling */
.enhanced-square-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 35px !important;
  height: 35px !important;
  background-color: #fff;
  border: 2px solid #C3C5FF;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.enhanced-square-button img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Header title styling */
.header-title {
  flex: 1; /* Takes up available space */
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin: 0 10px; /* Adds spacing between title and images */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .table-header {
    flex-direction: row;
    justify-content: space-around; /* Adjust spacing on smaller screens */
  }

  .header-title {
    font-size: 1.2rem;
  }

  .enhanced-square-button {
    width: 40px;
    height: 40px;
  }
  
    #footerlogo
{
  width: 25% !important;
    margin-left: 0.5%;  
}
}

@media (max-width: 480px) {
  .table-header {
    flex-direction: row;
    justify-content: space-between;
  }

  .header-title {
    font-size: 1rem;
  }

  .enhanced-square-button {
    width: 50px;
        height: 50px;
        margin-left: -5%;
        margin-right: -5%;
  }
  #footerlogo
{
  width: 25% !important;
    margin-left: 0.5%;  
}
}
#footerlogo
{
  width: 15%;
    margin-left: 0.5%;  
}