/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', Arial, sans-serif;
}

body{font-size:14px !important;}
.form-select{font-size:14px !important;}
@media (min-width: 992px) {
    input, select, textarea {
        padding: 6px;
        font-size: 1rem;
    }
}
.saprate-space{margin-top: 70px;}
h1 {  font-size: 36px;  font-weight: bold;}
h2 {  font-size: 30px;  font-weight: bold;}
h3 {  font-size: 24px;  font-weight: bold;}
h4 {  font-size: 20px;  font-weight: bold;}
h5 {  font-size: 18px;  font-weight: bold;}
h6 {  font-size: 16px;  font-weight: bold;}

#successMessage {
  background: #5a3e2b;
  color: #ccc;
  padding: 7px 20px;
  text-align: center;
  animation: fadeOut 1s ease-in-out 2s forwards;
  /* ^ fade out after 3s delay */
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
}

/* Header Styles */
.header-container {
  background-color: #fcffec;
  border-bottom: 2px solid #ebb976;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1100;
}


.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  text-align: center;
  color: #333;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-highlight {
  font-weight: bold;
  color: #5a3e2b;
}

.header-divider {
  margin: 0 6px;
  border-left: 1px solid #5a3e2b;
  height: 12px;
}

.header-button {
  background-color: #5a3e2b;
  color: #fff;
  border: none;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.header-button:hover {
  background-color: #7a543b;
}
@media (max-width: 768px) {
  .header-container {
    display: none;
  }
}
    /* Sidebar Base Styles */
    .Inventory-sidebar-container {
      position: fixed;
      top: 40px;
      left: 0;
      width: 250px;
      height: calc(100vh - 40px);
      background-color: #f8f4f1;
      border-right: 2px solid #5a3e2b;
      padding: 15px;
      z-index: 9999;
      overflow-y: auto;
      transform: translateX(-100%);
      transition: transform 0.3s ease;
    }

    .Inventory-sidebar-container.Inventory-sidebar-open {
      transform: translateX(0);
    }

    .Inventory-sidebar-close {
      font-size: 20px;
      color: #5a3e2b;
      cursor: pointer;
      text-align: right;
      margin-bottom: 15px;
      display: none;
    }

    .Inventory-sidebar-container.Inventory-sidebar-open .Inventory-sidebar-close {
      display: block;
    }

    .Inventory-sidebar-heading {
      font-size: 18px;
      font-weight: bold;
      color: #5a3e2b;
      margin-bottom: 20px;
      text-align: center;
    }

    .Inventory-sidebar-menu {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .Inventory-sidebar-menu-item {
      background-color: #ffffff;
      border-radius: 3px;
      margin-bottom: 5px;
      transition: background-color 0.3s ease;
      padding: 0;
    }

    .Inventory-sidebar-menu-item:hover {
      background-color: #f4f4f4;
    }

    /* Link + Chevron Container */
    .Inventory-sidebar-link-with-toggle {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px;
      cursor: pointer;
    }

    .Inventory-sidebar-link {
      display: flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      color: #333;
      font-weight: 500;
      font-size: 15px;
    }

    .Inventory-sidebar-dropdown-toggle {
      font-size: 14px;
      color: #5a3e2b;
    }

    .Inventory-sidebar-submenu {
      list-style: none;
      padding-left: 20px;
      margin: 0 0 10px 0;
      display: none;
    }
.Inventory-sidebar-submenu li a {
  color: #5a3e2b; /* your desired text color */
  text-decoration: none; /* optional: removes underline */
  font-weight: 500;       /* optional: makes text bolder */
}

/* Optional: change color on hover */
.Inventory-sidebar-submenu li a:hover {
  color: #000;           /* change to black on hover */
}


    .Inventory-sidebar-submenu li {
      background-color: #ffffff;
      padding: 6px;
      margin-bottom: 3px;
      border-radius: 2px;
    }

    .Inventory-sidebar-submenu li:hover {
      background-color: #ffffff;
    }

    .Inventory-sidebar-toggle {
      font-size: 20px;
      cursor: pointer;
      padding: 10px;
      color: #5a3e2b;
      position: fixed;
      top: 90px;
      left: 10px;
      z-index: 99999;
      display: none;
    }

    @media (min-width: 768px) {
      .Inventory-sidebar-container {
        transform: translateX(0);
        width: 15%;
        margin-top: 25px;
      }

      .Inventory-sidebar-toggle,
      .Inventory-sidebar-close {
        display: none;
      }

      .user-dashboard-main-content {
        margin-left: 15%;
        }
    }

    @media (max-width: 767px) {
      .Inventory-sidebar-toggle {
        display: block;
        margin-top: -29px;
      }

      .user-dashboard-main-content {
        margin-left: 0;
      }
    }

    /* Rotate Chevron */
    .rotate-chevron {
      transform: rotate(180deg);
      transition: transform 0.3s ease;
    }

/* Main Layout */
.main-layout {
  display: flex;
  margin-top: 40px; /* Offset for fixed header */
}

.user-dashboard-main-content {
  width: 85%;
  /* margin-left: 15%; */
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: calc(100vh - 40px);
  padding-bottom: 20px;
  overflow-y: auto;
}

/* Topbar */
.user-dashboard-topbar {
  display: flex;
      /* margin-top: 27%;
    margin-bottom: -95px; */
  justify-content: space-between;
  background: #f1f3f6;
  padding: 8px 15px;
  align-items: center;
  border-bottom: 1px solid #ccc;
  position: sticky;
  top: 75px; /* Below fixed header */
  z-index: 1000;
}
@media (max-width: 768px) {
  .user-dashboard-topbar {
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start;
    /* padding: 10px 12px;
    top: 60px; Adjust if header height changes on mobile */
              padding: 26px 16px;
        top: 111px;
        margin-bottom: 95px;
    
  }
}
.user-dashboard-left-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-dashboard-refresh-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: #5a3e2b;
  cursor: pointer;
  transition: color 0.3s ease;
}

.user-dashboard-refresh-btn:hover {
  color: #7a543b;
}

.user-dashboard-search-wrapper {
  position: relative;
  width: 250px;
}

.user-dashboard-search-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #5a3e2b;
}

.user-dashboard-search-input {
  padding: 5px 10px 5px 25px;
  border-radius: 3px;
  border: 1px solid #ccc;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.user-dashboard-right-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-dashboard-test-org {
  font-size: 12px;
  color: #333;
}

.user-dashboard-org-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.user-dashboard-org-name {
  font-weight: 600;
  color: #5a3e2b;
  font-size: 14px;
}

.user-dashboard-org-toggle {
  font-size: 10px;
  color: #5a3e2b;
}

.user-dashboard-org-menu {
  display: none;
  position: absolute;
  top: 25px;
  left: 0;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 3px;
  padding: 8px;
  z-index: 1000;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  min-width: 250px;
}

.user-dashboard-org-item {
  padding: 6px;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.user-dashboard-org-item:hover {
  background-color: #f0f0f0;
}

.user-dashboard-right-top button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #5a3e2b;
  transition: color 0.3s ease;
}

.user-dashboard-right-top button:hover {
  color: #7a543b;
}

/* Tab Bar */
.user-dashboard-tab-bar {
  display: flex;
  background: white;
  border-bottom: 1px solid #ddd;
  padding: 5px 15px;
  margin-top: 95px;
}

.user-dashboard-tab-link {
  padding: 8px 15px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  transition: all 0.3s ease;
}

.user-dashboard-tab-link:hover {
  background-color: #f0f0f0;
}

.user-dashboard-tab-link.active {
  border-bottom: 2px solid #007bff;
  color: #007bff;
}

/* Dashboard */
.user-dashboard-container {
    width: 100%;
    margin: 15px auto;
    padding: 10px;
}

.user-dashboard-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.user-dashboard-box-group {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.user-dashboard-box {
  background: #ffffff94;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.small-box {
  min-height: 120px;
}

.small-wide-box {
  min-height: 120px;
  grid-column: span 2;
}

.user-dashboard-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.user-dashboard-box i {
  font-size: 18px;
  color: #007bff;
  margin-bottom: 5px;
}

.user-dashboard-section-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.user-dashboard-box h3 {
  margin-bottom: 5px;
  color: #5a5962;
}

.user-dashboard-box span {
  color: #a1a1a1;
  font-size: 12px;
}

.user-dashboard-box p {
  font-size: 12px;
  color: #555;
}

.user-dashboard-summary-content {
  gap: 10px;
  align-items: center;
}

.user-dashboard-summary-content div {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #bebebe;
  padding: 10px;
  border-radius: 3px;
  margin-top: 5px;
}

.user-dashboard-summary-content i {
  font-size: 16px;
  color: #007bff;
}

.user-dashboard-product-details,
.user-dashboard-top-selling {
  flex: 1;
}

.user-dashboard-product-list {
  list-style: none;
  padding: 0;
}

.user-dashboard-product-list li {
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: space-between;
  font-size: 12px;
}

.user-dashboard-top-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* gap: 10px; */
}

.user-dashboard-top-item strong {
  font-size: 14px;
  color: black;
}

.user-dashboard-top-item {
  text-align: center;
}

.user-dashboard-top-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 5px;
}

/* .user-dashboard-box table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12px;
} */
.user-dashboard-box table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12px;
}

/* Responsive for smaller screens */
@media (max-width: 600px) {
  .user-dashboard-box table {
    font-size: 10px; /* Smaller font */
    display: block;  /* Make table scrollable */
    overflow-x: auto;
    white-space: nowrap; /* Prevent wrapping */
  }
}

.user-dashboard-box th,
.user-dashboard-box td {
  padding: 5px;
  border: 1px solid #ccc;
  text-align: center;
}

.user-dashboard-box thead {
    background-color: #bfb9b478;
    color: #000000;
}

.user-dashboard-box tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

.user-dashboard-box tbody tr:hover {
  background-color: #e6f7ff;
}

.user-dashboard-filter-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.user-dashboard-month-dropdown {
  position: relative;
}

.user-dashboard-month-select {
  padding: 5px 10px;
  border-radius: 3px;
  border: 1px solid #ccc;
  font-size: 12px;
  cursor: pointer;
}

.user-dashboard-order-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.small-graph-box {
  min-height: 150px;
}

.user-dashboard-graph {
  display: flex;
  justify-content: space-between;
  height: 100px;
  background: #f0f0f0;
  padding: 5px;
  border-radius: 3px;
  align-items: flex-end;
}

.user-dashboard-graph-bar {
  width: 20px;
  background: #007bff;
  border-radius: 2px;
  position: relative;
  transition: height 0.3s ease;
}

.user-dashboard-graph-bar span {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #333;
}

/* Footer */
.user-dashboard-footer {
  background: #f1f3f6;
  padding: 8px 15px;
  text-align: center;
  border-top: 1px solid #ccc;
  color: #333;
  font-size: 12px;
}

/* Right Sidebar */
.user-dashboard-right-sidebar {
  position: fixed;
  top: 70px;
  right: -350px;
  width: 300px;
  height: calc(100vh - 40px);
  background: white;
  box-shadow: -2px 0 5px rgba(0,0,0,0.1);
  padding: 15px;
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 1000;
}

.user-dashboard-right-sidebar.open {
  right: 0;
}

.user-dashboard-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.user-dashboard-close-icon {
  font-size: 18px;
  color: #5a3e2b;
  cursor: pointer;
}

.user-dashboard-close-icon:hover {
  color: #7a543b;
}

.user-dashboard-sidebar-content {
  margin-top: 10px;
}

.user-dashboard-app-group ul {
  list-style: none;
  padding: 0;
}

.user-dashboard-app-group li {
padding: 20px 10px;
    /* display: flex
; */
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 14px;
    border: 2px solid #c3c3c3;
    border-radius: 5px;
    margin-top: 10px;
    background-color: #fef4ff;
}


.inventory-card-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 20px;
}

.inventory-card-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
}

.inventory-card-sub {
  font-size: 14px;
  color: #666;
  margin-left: 10px;
}

.inventory-card-desc {
  text-align: center;
  margin-bottom: 30px;
  font-size: 15px;
  color: #666;
}

.inventory-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.inventory-card-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.06);
}

.inventory-card-heading {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.inventory-card-icon {
  font-size: 20px;
  margin-right: 10px;
}

.inventory-card-box p {
  font-size: 14px;
  margin-bottom: 10px;
}

.inventory-card-imgs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.inventory-card-imgs img {
  height: 24px;
  max-width: 100px;
  object-fit: contain;
}

.inventory-card-btn {
  background-color: #f1f5ff;
  color: #1a73e8;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
}

.inventory-card-url {
  font-size: 13px;
  color: #444;
}

.inventory-card-url a {
  color: #1a73e8;
  text-decoration: none;
}

     @media (max-width: 768px) {
.user-dashboard-main-content {
  width: 100%;
  /* margin-left: 15%; */
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: calc(100vh - 40px);
  padding-bottom: 20px;
  overflow-y: auto;
}
.user-dashboard-row {
    /* display: flex
; */
flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}
}    
 @media (max-width: 900px) {
.user-dashboard-main-content {
  width: 100%;
  /* margin-left: 15%; */
        margin-top: -25%;

  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: calc(100vh - 40px);
  padding-bottom: 20px;
  overflow-y: auto;
}
.user-dashboard-row {
    /* display: flex
; */
flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}
.user-dashboard-order-row {

    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
    flex-direction: column;
}
}


/* inventory item list */
.inventory-Item-container {
  /* width: 85%; */
  margin-left: auto; /* Push to right */
  padding: 20px;
  box-sizing: border-box;
  margin-top: 50px;
}
@media (max-width: 768px) {
  .inventory-Item-container {
    width: 100%;       /* Full width on smaller screens */
    margin-left: 0;    /* Remove push to right */
    padding: 15px 10px; /* Less padding for smaller screens */
    margin-top: 100px;  /* Adjust top margin */
  }
}
.inventory-Item-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.inventory-Item-table th, 
.inventory-Item-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.inventory-Item-table th {
  background: #f4f6fa;
  color: #555;
  font-weight: 600;
}

.inventory-Item-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inventory-Item-name img {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  object-fit: cover;
  background: #e0e0e0;
}

 /* .item-bar-container  */
    .item-bar-container {
      margin-left: auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 20px;
      background: #fff;
      border-bottom: 1px solid #e0e0e0;
    }

    .item-bar-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .item-bar-left select {
      padding: 6px 10px;
      font-size: 14px;
      border: 1px solid #ccc;
      border-radius: 4px;
    }

    .item-bar-right {
      display: flex;
      align-items: center;
      gap: 12px;
      position: relative;
    }

    .item-bar-button {
      background-color: #007bff;
      color: #fff;
      padding: 8px 16px;
      border: none;
      border-radius: 4px;
      font-size: 14px;
      cursor: pointer;
    }

    .item-bar-dots {
      font-size: 18px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 6px 10px;
      border-radius: 4px;
    }

    .item-bar-dropdown {
      display: none;
      position: absolute;
      top: 36px;
      right: 0;
      background: #fff;
      border: 1px solid #ccc;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      border-radius: 4px;
      z-index: 10;
      min-width: 150px;
    }

    .item-bar-dropdown a {
      display: block;
      padding: 10px 14px;
      font-size: 14px;
      text-decoration: none;
      color: #333;
      transition: background 0.2s;
    }

    .item-bar-dropdown a:hover {
      background: #f5f5f5;
    }

    .item-bar-show {
      display: block;
    }
