/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

/* ===== CONTAINER ===== */
.container {
  height: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 0 12px;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: 0px 8px 16px rgba(117, 117, 117, 0.2);
}

.nav-left {
  display: flex;
  align-items: center;
}

.logo-text {
  font-weight: bold;
  font-size: 18px;
  color: black;
}

.logo-img {
  height: 30px;
  width: auto;
  margin-right: 10px;
}


.supplier-icon {
  font-size: 18px;
  color: black;
  cursor: pointer;
}

.supplier-icon i {
  padding: 5px;
}


.nav-items {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar a {
  color: black;
  text-decoration: none;
}

.dropdown {
  position: relative;
}

.dropdown-btn {
  background: none;
  border: none;
  color: black;
  font-size: 16px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  min-width: 120px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1100;
}

.dropdown-content a {
  padding: 10px;
  display: block;
  text-decoration: none;
  color: #333;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ===== SIDEBAR ===== */
#sidebar {
  height: calc(100% - 40px); /* below navbar */
  top: 60px;
  width: 250px;
  position: fixed;
  left: 0;
  background-color: rgb(255, 183, 0);
  overflow-x: hidden;
  transition: width 0.3s;
  z-index: 999;
}

#sidebar.collapsed {
  width: 40px;
}

#sidebar a {
  padding: 10px 20px;
  text-decoration: none;
  font-size: 18px;
  color: black;
  display: block;
  transition: 0.2s;
  margin-left: 10px;
}

#sidebar a:hover {
  color: white;
}

#sidebar.collapsed a {
  display: none;
}

.sidebar-toggle {
  position: absolute;
  top: 10px;
  left: 90%;
  transform: translateX(-50%);
  /*background-color: #fff;*/
  /*border: 1px solid #ccc;*/
  border-radius: 50%;
  padding: 5px;
  cursor: pointer;
  z-index: 1001;
}

#sidebar-arrow {
  transition: transform 0.3s;
}

#sidebar.collapsed #sidebar-arrow {
  transform: rotate(180deg);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: 250px;
  transition: margin-left 0.3s;
  padding-top: 40px;
}

#sidebar.collapsed ~ .main-content {
  margin-left: 40px;
}

.first-page {
  padding: 20px;
}

.next-line {
  display: flex;
  margin-top: 30px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap; /* Makes it responsive */
  margin-bottom: 10px;
}

.left-info h4 {
  display: inline-block;
  margin-right: 100px;
}



.content {
  margin-top: 20px;
  width: 100%;
  overflow: auto;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2%;
}

.card {
  width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 15px;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card i {
  color: #ffb300;
  font-size: 24px;
}

.data h2,
.data p {
  margin: 5px 0;
}

.data p {
  color: #616060b8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 500px) {
  .card {
    width: 100%;
    padding: 10px;
  }

  .data h2 {
    font-size: 0.7rem;
  }

  .data p {
    font-size: 0.5rem;
  }
}

/* ===== LOGIN FORM ===== */
.login {
  height: 100%;
  align-items: center;
  display: flex;
  justify-content: center;
}

.login-form {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 300px;
}

.login-form p {
  font-size: small;
  margin-top: 2px;
  margin-bottom: 20px;
}

.login-form label {
  font-size: small;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  padding: 10px;
  margin: 8px 0 16px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-form button {
  width: 100%;
  background-color: #ffb300;
  border-radius: 3px;
  border: none;
  padding: 10px;
  color: white;
  cursor: pointer;
}

.login-form button:hover {
  background-color: #fcbe06;
}

/* ===== PARTY DETAIL FORM ===== */
.partyDetail {
  height: auto;
  display: flex;
  justify-content: center;
  padding: 40px 40px 4px 270px;
  /*padding: 80px 40px 40px 270px;   /*Left padding matches expanded sidebar */
  transition: padding-left 0.3s ease;
  overflow-y: auto;
}

.partyDetail.sidebar-collapsed {
  padding-left: 60px; /* Matches collapsed sidebar width */
  
}

.party-box {
  margin: 3% 3%;
  width: 100%;
  max-width: 100%;
  margin-top: 7%;
}

.party-box h2 {
  padding-left: 20px;
}

.partyDetail-form {
  color: #2a2929;
  margin-top: 1.5%;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  overflow: hidden;
}

.partyDetail-form input[type="text"] {
  width: 100%;
  padding: 10px;
  margin: 8px 0 16px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.required {
  color: red;
  font-size: small;
}

.detail {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 5%;
}

#address {
  border-color: #ccc;
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  margin: 8px 0;
  height: 70px;       /*35*/
  /*font-size: 14px;*/
}

.city,
.contact,
.state,
.gstin,
.country,
.reference {
  width: 30%;
}

/* === FIXED SELECT2 DROPDOWN TO MATCH TEXT FIELD === */
.select2-container--default .select2-selection--single  {
  height: 38px !important; /* Match text input 42  */
  padding: 6px 12px !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  display: flex !important;
  align-items: center !important;
  background-color: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #2a2929;
  line-height: normal !important;
  padding-left: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px !important;
  top: 0 !important;
  right: 10px !important;
}

.select2-container {
  width: 100% !important;
  margin: 8px 0 16px 0 !important; /* Matches text input spacing */
  box-sizing: border-box;
}

.select2-dropdown {
  border: 1px solid #ccc;
  border-radius: 0 0 4px 4px;
  font-size: 14px;
}

/* Hover/focus */
.select2-container--default .select2-selection--single:hover,
.select2-container--default .select2-selection--single:focus {
  border-color: #999 !important;
}

.select2-container--open .select2-dropdown {
  top: 7px !important; /* Push it just below the field */
  margin-top: 2px;
  
}



.country,
.reference {
  float: right;
}

.partyDetail-form > .btn {
  margin-top: 10px;
  font-size: small;
  padding: 7px 10px;
  border: none;
  background-color: #f29c2b;
  color: white;
  font-weight: bold;
  border-radius: 4px;
}




/* party details */

.party-details {
    margin: 5%;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.first-line,
.second-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.party-details>.selector {
    height: 1px;
    background-color: #a3a1a1;
    margin: 15px 0;
    width: 100%;
}

.second-line>.search {
    display: flex;
    align-items: center;
}

.search>label {
    margin-right: 10px;
}

.search>input {
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.first-line > button {
    background-color: rgb(255, 183, 0);
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    font-size: 15px;
}

.first-line>button:hover {
    background-color: rgb(243, 174, 0);
    
}

.table {
    overflow: scroll;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    
}

table,
th,
td {
    border: 1px solid #ddd;
}

th,
td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    justify-items: space-between;
}

.action-icon {
  margin: 0 8px;
  cursor: pointer;
  font-size: 18px;
}

.edit-icon {
  color: #007bff; /* Blue for edit */
}

.delete-icon {
  color: #dc3545; /* Red for delete */
}



/*  Profile Entry Details */

.profile-entry {
    margin: 5%;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.profile-entry>.selector {
    height: 1px;
    background-color: #a3a1a1;
    margin: 15px 0;
    width: 100%;
}


/* ===== PROFILE DETAIL FORM ===== */
.profileDetail {
  height: auto;
  display: flex;
  justify-content: center;
  padding: 40px 40px 4px 270px;
  /*padding: 80px 40px 40px 270px;   /*Left padding matches expanded sidebar */
  transition: padding-left 0.3s ease;
}

.partyDetail.sidebar-collapsed .profileDetail.sidebar-collapsed{
  padding-left: 60px; /* Matches collapsed sidebar width */
  
}

.profile-box{
  margin: 3% 3%;
  width: 100%;
  max-width: 100%;
  margin-top: 7%;
}

.profile-box h2 {
  padding-left: 20px;
}

.profileDetail-form {
  color: #2a2929;
  margin-top: 1.5%;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  overflow: hidden;
}

.profileDetail-form input[type="text"] {
  width: 100%;
  padding: 10px;
  margin: 8px 0 16px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.profileDetail-form input[type="file"] {
  width: 100%;
  padding: 10px;
  margin: 8px 0 16px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  font-size: 14px;
}

.required {
  color: red;
  font-size: small;
}

.detail {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 5%;
}


.size,
.perimeter,
.img1,
.img2,
.jbw {
  width: 30%;
}

.profileDetail-form > .btn {
  margin-top: 10px;
  font-size: small;
  padding: 7px 10px;
  border: none;
  background-color: #f29c2b;
  color: white;
  font-weight: bold;
  border-radius: 4px;
}