#vendor-manager-app * {
    box-sizing: border-box;
}
 
#vendor-manager-app {
    width:100%;
    margin: auto;
    position: relative;
    z-index: 0;
}
 
/* ---------------- TOP SECTION ---------------- */
#vendor-manager-app .vm-top {
    display: flex;
    flex-direction: column;
}

.vm-left p {
    font-size: 14px;
    margin: 0;
}

.vm-left-outer {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

div#vendor-manager-app h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #212529;
}
 
#vendor-manager-app .vm-progress {
    width: 250px;
    height: 16px;
    background: #e4e6e9;
    border-radius: 10px;
    margin-top: 5px;
}
 
/* ---------------- TABS ---------------- */
#vendor-manager-app .vm-tabs {
    display: flex;
    position: relative;
    z-index: 99999;
}
 
#vendor-manager-app .vm-tab {
    padding: 10px 12px;
    cursor: pointer;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin: 0;
    line-height: 20px;
    color: #000;
    font-weight: 500 !important;
    height: auto;
    max-height: fit-content;
}
 
#vendor-manager-app .vm-tab.active {
    background: #ffd800;
    border-color: #ffd800;
    font-weight: bold;
}
 
/* ---------------- ADD BUTTON ---------------- */
#vendor-manager-app .vm-add-btn {
    background: #ffd800;
    padding: 10px 17px;
    border: 1px solid #ccc;
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 15px;
    color: #000;
    font-weight: 500;
}
 
/* ---------------- SELECT ALL ---------------- */
#vendor-manager-app .vm-select-all {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
}
 
/* ---------------- GRID ---------------- */
#vendor-manager-app .vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
 
/* ---------------- CARD ---------------- */
#vendor-manager-app .vm-card {
    padding: 20px;
    border: 1px solid #ddd;
    background: #f9f4f4f5;
    border-radius: 10px;
    position: relative;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}
 
#vendor-manager-app .vm-card input {
    position: absolute;
    top: 10px;
    left: 10px;
}
 
#vendor-manager-app .vm-card img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 10px;
}
#vendor-manager-app .vm-card h4 {
    margin: 16px 0;
    font-size: 20px;
    display: inline-block;
    color: #000;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#vendor-manager-app .vm-search-btn {
    padding: 7px 14px;
    background: #444;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    border-radius: 40px;
    font-size: 16px;
}
@media screen and (max-width:767px){
	.vm-left-outer {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
	gap:20px;
}
	#vendor-manager-app .vm-add-btn {
    margin: auto;
}
}
@media screen and (max-width:500px){
	.vm-left-outer {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    gap: 20px;
    flex-direction: column;
    align-items: center;
}
	.vm-left {
    width: 100%;
}
	#vendor-manager-app .vm-grid {
    display: grid;
    grid-template-columns: repeat(1,1fr);
    gap: 20px;
}
}
.vm-top-actions {
    width: 100%;
    display: none; /* hidden by default */
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 5px 0 20px 0;
    padding-right: 10px;
}

.vm-top-actions label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
}

.vm-top-actions input[type="checkbox"],
.vm-top-actions input[type="radio"] {
    cursor: pointer;
}


/* Sidebar & two-column layout for selected category view */
#vendor-manager-app .wvc-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  align-items: flex-start;
  box-sizing: border-box;
  padding: 10px 8px;
}

#vendor-manager-app .wvc-sidebar {
  width: 260px;
  flex: 0 0 260px;
  background: transparent;
  padding: 6px 4px 0 4px;
  box-sizing: border-box;
}

#vendor-manager-app .wvc-sidebar h3 {
  margin: 0 0 12px;
  font-size: 13px;
  color: #6b6b6b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

#vendor-manager-app .wvc-cat-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#vendor-manager-app .wvc-cat-list li {
  margin-bottom: 8px;
}

#vendor-manager-app .wvc-cat-item a,
#vendor-manager-app .wvc-cat-all a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  color: #222;
  text-decoration: none;
  font-size: 14px;
}

#vendor-manager-app .wvc-cat-item.active a,
#vendor-manager-app .wvc-cat-all.active a {
  background: #fff7e6;
  border-color: #ffd54a;
}

#vendor-manager-app .wvc-cat-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-right: 8px;
  flex: 0 0 36px;
}

#vendor-manager-app .wvc-cat-name {
  flex: 1 1 auto;
  text-align: left;
  color: #222;
  font-weight: 600;
}

#vendor-manager-app .wvc-cat-count {
  flex: 0 0 auto;
  color: #777;
  font-weight: 500;
}

/* Main column */
#vendor-manager-app .wvc-main {
  flex: 1;
  min-width: 0;
}

#vendor-manager-app .wvc-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

#vendor-manager-app .wvc-main-head h2 {
  margin: 0;
  font-size: 20px;
  color: #222;
}

#vendor-manager-app .wvc-vendor-list .wvc-vendor-card {
  border-bottom: 1px solid #eee;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#vendor-manager-app .wvc-vendor-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

#vendor-manager-app .wvc-vendor-meta {
  margin: 0;
  color: #777;
  font-size: 13px;
}

/* Empty state centered in main column */
#vendor-manager-app .wvc-empty {
  text-align: center;
  padding: 60px 10px;
  color: #666;
}

/* pill close + back link styles for selected-category view */
#vendor-manager-app .wvc-search-pill { box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
#vendor-manager-app .wvc-search-label { font-weight:600; font-size:14px; }
#vendor-manager-app .wvc-pill-close { border: none; cursor: pointer; text-decoration: none; }
#vendor-manager-app .wvc-pill-close:hover { background:#eee; color:#000; }

#vendor-manager-app .wvc-back-wrap { display:block; margin-top:6px; }
#vendor-manager-app .wvc-back-link { color:#222; font-size:14px; text-decoration:none; }
#vendor-manager-app .wvc-back-link:hover { color:#000; text-decoration:underline; }

/* Responsive: collapse to single column on small screens */
@media (max-width: 900px) {
  #vendor-manager-app .wvc-container {
    flex-direction: column;
    gap: 12px;
    padding: 0 8px;
  }
  #vendor-manager-app .wvc-sidebar {
    width: 100%;
    flex: none;
    order: 1;
  }
  #vendor-manager-app .wvc-main {
    order: 2;
    }
  #vendor-manager-app .wvc-back-wrap { margin-bottom:8px;}
}

/* Make vendor card look like the reference (image on top, content below) */
#wvc-vendor-manager-fix {} /* noop for editor */

#wendor-manager-app-placeholder {} /* noop */

#vendor-manager-app .wvc-vendor-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  background: #fff !important;
  padding: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
  border: 1px solid rgba(0,0,0,0.04) !important;
  margin-bottom: 18px;
}

/* image header */
#vendor-manager-app .wvc-vendor-thumb {
  flex: 0 0 auto;
  width: 100%;
  overflow: hidden;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  position: relative;
}
#vendor-manager-app .wvc-vendor-thumb img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* overlay on image */
#vendor-manager-app .wvc-thumb-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.65) 100%);
  color: #fff;
}
#vendor-manager-app .wvc-overlay-cat { font-size:12px; text-transform:uppercase; opacity:0.9; font-weight:600; margin-bottom:6px; }
#vendor-manager-app .wvc-overlay-title { font-size:16px; font-weight:700; margin-bottom:4px; }
#vendor-manager-app .wvc-overlay-sub { font-size:13px; opacity:0.9; }

/* body/content area */
#vendor-manager-app .wvc-vendor-card > div:not(.wvc-vendor-thumb) {
  padding: 14px 16px !important;
}

/* body area */
#vendor-manager-app .wvc-vendor-body { padding: 14px 16px; }

/* title row: keep title left and status select right */
#vendor-manager-app .wvc-vendor-card .wvc-vendor-card > div,
#vendor-manager-app .wvc-vendor-card .wvc-vendor-meta {
  color: #222;
}
#vendor-manager-app .wvc-vendor-card .wvc-vendor-meta { margin: 8px 0 12px; color:#666; }

/* status select styling */
.wvc-status-select {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #e3e3e3;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-weight:600;
  cursor: pointer;
  min-width: 160px;
  max-width: 240px;
}

/* price input */
.wvc-price-input {
  width: 120px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #e3e3e3;
  font-weight:600;
}
.wvc-price-pill { font-size:14px; color:#666; margin-right:6px; }

/* price pill */
#vendor-manager-app .wvc-vendor-card .price-pill,
#vendor-manager-app .wvc-vendor-card .wvc-price-pill {
  background: #f7f7f7;
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
  font-weight:600;
  color: #333;
}

/* ensure layout at desktop matches reference spacing */
@media (min-width: 900px) {
  #vendor-manager-app .wvc-container .wvc-main {
    padding-left: 8px;
  }
}

/* make sure select and inputs align on small screens */
@media (max-width:700px){
  #vendor-manager-app .wvc-vendor-card { margin-bottom: 14px; }
  .wvc-price-input { width: 100px; }
}


