/* CommercialVendors — small custom CSS layer.
 * Tailwind covers ~95% of styling via CDN. This file holds bits Tailwind
 * doesn't express cleanly (Kanban column heights, drag ghosts, etc.).
 * Keep this file under 150 lines.
 */

[x-cloak] { display: none !important; }

/* ---------- Sidebar ---------------------------------------------------- */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin: 0.125rem 0;
  border-radius: 0.375rem;
  color: rgb(51 65 85); /* slate-700 */
  font-weight: 500;
  text-decoration: none;
  transition: background-color 100ms ease, color 100ms ease;
}
.sidebar-link:hover {
  background: rgb(248 250 252); /* slate-50 */
  color: rgb(15 23 42); /* slate-900 */
}
.sidebar-link.is-active {
  background: rgb(239 246 255); /* brand-50 */
  color: rgb(30 64 175); /* brand-800 */
  font-weight: 600;
}

/* ---------- Tables ----------------------------------------------------- */
.table-scroll {
  max-height: 70vh;
  overflow-y: auto;
}

/* Mobile-friendly table card collapse — opt-in via .table-collapse */
@media (max-width: 700px) {
  .table-collapse thead { display: none; }
  .table-collapse tr {
    display: block;
    border-bottom: 1px solid rgb(226 232 240);
    padding: 0.5rem 0;
  }
  .table-collapse td {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 1rem;
    border: 0;
  }
  .table-collapse td::before {
    content: attr(data-label);
    font-weight: 500;
    color: rgb(100 116 139);
    margin-right: 1rem;
  }
}

/* ---------- Kanban ---------------------------------------------------- */
.kanban-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.kanban-column {
  display: flex;
  flex-direction: column;
  background: rgb(248 250 252);
  border: 1px solid rgb(226 232 240);
  border-radius: 0.5rem;
  min-height: 60vh;
  max-height: 75vh;
}
.kanban-column-header {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid rgb(226 232 240);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgb(71 85 105);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kanban-column-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.kanban-card {
  background: white;
  border: 1px solid rgb(226 232 240);
  border-radius: 0.375rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 120ms;
}
.kanban-card:hover { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06); }
.kanban-card.is-dragging { opacity: 0.5; }
.kanban-card.drag-ghost {
  border: 2px dashed rgb(148 163 184);
  background: rgb(241 245 249);
}
.kanban-column-body.drag-over {
  background: rgb(239 246 255); /* brand-50 */
  outline: 2px dashed rgb(96 165 250); /* blue-400 */
  outline-offset: -4px;
}

/* ---------- Misc ------------------------------------------------------ */
.dotted-divider {
  border-top: 1px dashed rgb(203 213 225);
}
