@import "tailwindcss";
@plugin "daisyui";

/* ── 倉庫マップ共通スタイル ── */
.floor-map {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 20px;
}

.map-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shelf-block {
  width: 150px;
  border: 1.5px solid #333;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background-color: #fff;
  overflow: hidden;
}

.shelf-block.half {
  width: 73px;
}

.shelf-row {
  display: flex;
  gap: 4px;
}

.shelf-block-header {
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  padding: 3px 4px;
  border-bottom: 1px solid #ccc;
  background-color: rgba(0, 0, 0, 0.06);
  line-height: 1.2;
}

.shelf-level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 6px;
  font-size: 11px;
  border-top: 1px solid #ddd;
  color: inherit;
  min-height: 22px;
}

.level-label {
  font-weight: bold;
  min-width: 10px;
}

.shelf-section-group {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: flex-end;
}

.shelf-section-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 22px;
  border: 1px solid transparent;
}

.shelf-section-cell:hover {
  background-color: rgba(0, 0, 0, 0.08);
  border-color: #ccc;
}

.section-label {
  font-weight: bold;
  font-size: 10px;
}

.level-count-badge {
  font-size: 9px;
  font-weight: bold;
  color: #92400e;
}

.level-hit {
  background-color: #fef08a !important;
}

.pillar {
  width: 150px;
  height: 50px;
  background-color: #eee;
  border: 1px solid #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-sizing: border-box;
  font-size: 12px;
}

.pillar-horizontal-group {
  display: flex;
  gap: 4px;
}

.pillar.horizontal {
  width: 73px;
  height: 50px;
}

.shelf-block.orange { background-color: #fce4ec !important; }
.shelf-block.blue   { background-color: #e3f2fd !important; }
.shelf-block.pink   { background-color: #f3e5f5 !important; }
.shelf-block.yellow { background-color: #fff9c4 !important; }

.search-hit {
  border: 2px solid #ca8a04 !important;
  box-shadow: 0 0 6px rgba(202, 138, 4, 0.5);
}

.map-footer {
  margin-top: 40px;
  font-weight: bold;
}

.text-danger {
  color: #d32f2f;
  margin: 5px 0;
  display: block;
}
